Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000877/0.000877, allocations: 80.34 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001041/0.001041, allocations: 156.9 kB / 23.95 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9559/0.9559, allocations: 177 MB / 204.1 MB, free: 5.695 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2798/0.2798, allocations: 34.85 MB / 295.5 MB, free: 0.5352 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 443.2 MB, free: 0.875 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.01e-05/2.147e-05, allocations: 4.672 kB / 443.2 MB, free: 0.8711 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.1955/0.1955, allocations: 10.51 MB / 453.7 MB, free: 37.48 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.005901/0.2014, allocations: 3.785 MB / 457.5 MB, free: 34.84 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001467/0.2029, allocations: 84 kB / 457.5 MB, free: 34.8 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001471/0.2043, allocations: 0.8466 MB / 458.4 MB, free: 34.39 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002027/0.2064, allocations: 1.072 MB / 459.5 MB, free: 33.69 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000828/0.2072, allocations: 0.5398 MB / 460 MB, free: 33.36 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002804/0.21, allocations: 3.586 MB / 463.6 MB, free: 31.49 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001361/0.2114, allocations: 1.485 MB / 465.1 MB, free: 30.73 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00285/0.2142, allocations: 2.307 MB / 467.4 MB, free: 29.67 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001698/0.2159, allocations: 1.693 MB / 469.1 MB, free: 29.07 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003823/0.2163, allocations: 407.7 kB / 469.5 MB, free: 29.07 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009069/0.2172, allocations: 0.6252 MB / 470.1 MB, free: 29 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006832/0.2179, allocations: 1.191 MB / 471.3 MB, free: 28.32 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001254/0.2191, allocations: 1.268 MB / 472.6 MB, free: 27.7 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00454/0.2237, allocations: 5.462 MB / 478 MB, free: 25.8 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.2237, allocations: 0 / 478 MB, free: 25.8 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2237, allocations: 0 / 478 MB, free: 25.8 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001594/0.2238, allocations: 0 / 478 MB, free: 25.8 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 701 * Number of variables: 701 Notification: Performance of Generate backend data structure: time 0.005994/0.2298, allocations: 3.712 MB / 481.7 MB, free: 23.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.3e-05/0.2299, allocations: 9.031 kB / 481.7 MB, free: 23.75 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003647/0.2302, allocations: 392.8 kB / 482.1 MB, free: 23.52 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001077/0.2313, allocations: 484.7 kB / 482.6 MB, free: 23.33 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002269/0.2336, allocations: 1.921 MB / 484.5 MB, free: 22.27 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.454e-05/0.2337, allocations: 211.5 kB / 484.7 MB, free: 22.16 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002554/0.2339, allocations: 266.2 kB / 485 MB, free: 22.07 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004504/0.2384, allocations: 3.643 MB / 488.6 MB, free: 20.5 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.033e-05/0.2385, allocations: 14.22 kB / 488.6 MB, free: 20.49 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001648/0.2387, allocations: 112.3 kB / 488.8 MB, free: 20.4 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001294/0.2388, allocations: 120.8 kB / 488.9 MB, free: 20.39 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003972/0.2428, allocations: 2.958 MB / 491.8 MB, free: 19.34 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01394/0.2567, allocations: 9.968 MB / 0.49 GB, free: 13.71 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002066/0.2588, allocations: 1.505 MB / 0.4915 GB, free: 13.14 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001481/0.2603, allocations: 1.094 MB / 0.4926 GB, free: 12.77 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002353/0.2605, allocations: 57.61 kB / 0.4926 GB, free: 12.77 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.972e-05/0.2605, allocations: 46.12 kB / 0.4927 GB, free: 12.71 MB / 410.7 MB Notification: Performance of pre-optimization done (n=130): time 4.358e-06/0.2605, allocations: 0 / 0.4927 GB, free: 12.71 MB / 410.7 MB Notification: Performance of matching and sorting (n=147): time 0.01122/0.2718, allocations: 7.037 MB / 0.4995 GB, free: 9.762 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.047e-05/0.2718, allocations: 66.5 kB / 0.4996 GB, free: 9.699 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002171/0.274, allocations: 2.025 MB / 0.5016 GB, free: 8.586 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.845e-05/0.274, allocations: 51.7 kB / 0.5016 GB, free: 8.535 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004858/0.2745, allocations: 1.348 MB / 0.503 GB, free: 7.301 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002085/0.2747, allocations: 0.5151 MB / 0.5035 GB, free: 6.781 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003034/0.275, allocations: 335.4 kB / 0.5038 GB, free: 6.449 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.18e-05/0.2751, allocations: 301.1 kB / 0.5041 GB, free: 6.152 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008187/0.2759, allocations: 0.8812 MB / 0.5049 GB, free: 5.273 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000922/0.2768, allocations: 1.376 MB / 0.5063 GB, free: 3.695 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001792/0.2786, allocations: 2.377 MB / 0.5086 GB, free: 1.109 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.895e-06/0.2786, allocations: 4 kB / 0.5086 GB, free: 1.105 MB / 410.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.003415/0.282, allocations: 2.908 MB / 0.5114 GB, free: 14.18 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.652e-05/0.2821, allocations: 12.36 kB / 0.5114 GB, free: 14.17 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.707e-05/0.2821, allocations: 20 kB / 0.5115 GB, free: 14.15 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008495/0.2829, allocations: 457.3 kB / 0.5119 GB, free: 13.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000888/0.2838, allocations: 435.3 kB / 0.5123 GB, free: 13.27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005126/0.289, allocations: 5.83 MB / 0.518 GB, free: 7.215 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001664/0.2906, allocations: 119.8 kB / 0.5181 GB, free: 7.098 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001076/0.2907, allocations: 68 kB / 0.5182 GB, free: 7.031 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (198): * Single equations (assignments): 193 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,16,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001378/0.2921, allocations: 0.868 MB / 0.519 GB, free: 6.152 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000329/0.2924, allocations: 222.7 kB / 0.5192 GB, free: 5.934 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002687/0.2951, allocations: 2.502 MB / 0.5217 GB, free: 3.406 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.317e-05/0.2951, allocations: 16 kB / 0.5217 GB, free: 3.391 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.2951, allocations: 4 kB / 0.5217 GB, free: 3.387 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/0.2952, allocations: 7.969 kB / 0.5217 GB, free: 3.379 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006261/0.3014, allocations: 5.193 MB / 0.5268 GB, free: 14.07 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.3014, allocations: 4 kB / 0.5268 GB, free: 14.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006084/0.302, allocations: 275.6 kB / 0.5271 GB, free: 13.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007558/0.3028, allocations: 0.4904 MB / 0.5275 GB, free: 13.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.887e-05/0.3029, allocations: 35.98 kB / 0.5276 GB, free: 13.27 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005314/0.3082, allocations: 7.306 MB / 0.5347 GB, free: 5.633 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.3082, allocations: 11.94 kB / 0.5347 GB, free: 5.621 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004422/0.3126, allocations: 3.746 MB / 0.5384 GB, free: 1.805 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001654/0.3143, allocations: 423 kB / 0.5388 GB, free: 1.391 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002652/0.3145, allocations: 32 kB / 0.5388 GB, free: 1.359 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006802/0.3152, allocations: 99.88 kB / 0.5389 GB, free: 1.262 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002434/0.3154, allocations: 121 kB / 0.539 GB, free: 1.145 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.169e-05/0.3155, allocations: 47.98 kB / 0.5391 GB, free: 1.098 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001625/0.3171, allocations: 1.372 MB / 0.5404 GB, free: 15.7 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3171, allocations: 0 / 0.5404 GB, free: 15.7 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001921/0.3191, allocations: 0.582 MB / 0.541 GB, free: 15.12 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smee.inertiaRotor.w,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],mechanicalMultiSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (124): * Single equations (assignments): 119 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,16,100.0%), (1,6,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004664/0.3237, allocations: 4.424 MB / 0.5453 GB, free: 10.62 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003789/0.3275, allocations: 2.443 MB / 0.5477 GB, free: 8.145 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.3275, allocations: 0 / 0.5477 GB, free: 8.145 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001668/0.3292, allocations: 1.537 MB / 0.5492 GB, free: 6.57 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001827/0.331, allocations: 0.4919 MB / 0.5497 GB, free: 6.094 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02881/0.3598, allocations: 21.63 MB / 0.5708 GB, free: 15.77 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001403/0.3612, allocations: 1.581 MB / 0.5723 GB, free: 14.16 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.00107/0.3623, allocations: 476.9 kB / 0.5728 GB, free: 13.69 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001427/0.3637, allocations: 1.074 MB / 0.5738 GB, free: 12.61 MB / 490.7 MB Notification: Performance of SimCode: time 1.353e-06/0.3637, allocations: 0 / 0.5738 GB, free: 12.61 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1606/0.5244, allocations: 56.97 MB / 0.6295 GB, free: 4.066 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.928/9.453, allocations: 0 / 0.6295 GB, free: 4.066 MB / 0.5261 GB " [Timeout remaining time 650] (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & (cd run_OMSimulator && /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --stripRoot --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL_fmu --startTime=0 --stopTime=2.05 --stepSize=0.000100005 --timeout=50 --tolerance=1e-06 ../ModelicaTest_trunk_ModelicaTest_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL.fmu) > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1) [Timeout 52.5] (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_fmpy.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_fmpy.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_fmpy.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_fmpy.sim & (cd run_fmpy && python3 -m fmpy simulate --output-file ../ModelicaTest_trunk_ModelicaTest.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_fmpy_res.csv --start-time 0 --stop-time 2.05 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000100005 ../ModelicaTest_trunk_ModelicaTest_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL.fmu) > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_fmpy.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.076964195817709]