Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001493/0.001493, allocations: 113 kB / 18.49 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00159/0.00159, allocations: 217.4 kB / 21.46 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.419/1.419, allocations: 230.6 MB / 254.8 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001535/0.001535, allocations: 51.92 kB / 373.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1281, allocations: 53.33 MB / 427 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.2385/0.3667, allocations: 6.538 MB / 433.6 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004397/0.3711, allocations: 2.644 MB / 436.2 MB, free: 6.996 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006702/0.3717, allocations: 23.25 kB / 436.2 MB, free: 6.992 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002854/0.3746, allocations: 1.279 MB / 437.5 MB, free: 6.367 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001738/0.3763, allocations: 0.5368 MB / 438 MB, free: 6.074 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002461/0.3788, allocations: 1.274 MB / 439.3 MB, free: 5.578 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001599/0.3804, allocations: 1.071 MB / 440.4 MB, free: 5.086 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001137/0.3815, allocations: 0.6965 MB / 441.1 MB, free: 4.672 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008521/0.3824, allocations: 460.5 kB / 441.5 MB, free: 4.449 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008696/0.3832, allocations: 0.5423 MB / 442.1 MB, free: 4.168 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001944/0.3834, allocations: 97.19 kB / 442.2 MB, free: 4.168 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001181/0.3846, allocations: 421.9 kB / 442.6 MB, free: 4.051 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002003/0.3848, allocations: 233.2 kB / 442.8 MB, free: 3.891 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005364/0.3853, allocations: 0.5226 MB / 443.3 MB, free: 3.555 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002617/0.388, allocations: 1.531 MB / 444.9 MB, free: 2.902 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.388, allocations: 0 / 444.9 MB, free: 2.902 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.388, allocations: 0 / 444.9 MB, free: 2.902 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.231e-05/0.388, allocations: 1.125 kB / 444.9 MB, free: 2.902 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.005058/0.3931, allocations: 1.67 MB / 446.5 MB, free: 1.922 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.359e-05/0.3931, allocations: 9.5 kB / 446.5 MB, free: 1.922 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.498e-05/0.3932, allocations: 31.98 kB / 446.6 MB, free: 1.914 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002481/0.3934, allocations: 176.5 kB / 446.7 MB, free: 1.793 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00336/0.3968, allocations: 480.5 kB / 447.2 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009045/0.3977, allocations: 0.4991 MB / 447.7 MB, free: 1.277 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.164e-05/0.3978, allocations: 83.2 kB / 447.8 MB, free: 1.238 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001624/0.3979, allocations: 113.4 kB / 447.9 MB, free: 1.199 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001872/0.3998, allocations: 0.9781 MB / 448.9 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.163e-05/0.3999, allocations: 6.812 kB / 448.9 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001011/0.4, allocations: 46.03 kB / 448.9 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.136e-05/0.4, allocations: 26.53 kB / 449 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002001/0.402, allocations: 0.9639 MB / 449.9 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006655/0.4086, allocations: 3.772 MB / 453.7 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002128/0.4108, allocations: 1.498 MB / 455.2 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007541/0.4115, allocations: 396.2 kB / 455.6 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001925/0.4117, allocations: 193 kB / 455.8 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008942/0.4126, allocations: 479.5 kB / 456.2 MB, free: 12.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=98): time 2.926e-06/0.4126, allocations: 1.125 kB / 456.2 MB, free: 12.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=130): time 0.01028/0.4229, allocations: 4.136 MB / 460.4 MB, free: 10.04 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.423, allocations: 143.2 kB / 460.5 MB, free: 9.883 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005276/0.4235, allocations: 412.1 kB / 460.9 MB, free: 9.625 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.105e-05/0.4236, allocations: 53.89 kB / 461 MB, free: 9.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003566/0.424, allocations: 438 kB / 461.4 MB, free: 9.184 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000373/0.4243, allocations: 459.4 kB / 461.8 MB, free: 8.781 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003543/0.4247, allocations: 215 kB / 462.1 MB, free: 8.648 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002013/0.4249, allocations: 378.5 kB / 462.4 MB, free: 8.285 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007393/0.4256, allocations: 365.3 kB / 462.8 MB, free: 8.113 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009406/0.4266, allocations: 0.554 MB / 463.3 MB, free: 7.715 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001762/0.4283, allocations: 0.974 MB / 464.3 MB, free: 7.113 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.4283, allocations: 1.312 kB / 464.3 MB, free: 7.113 MB / 366.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.003414/0.4318, allocations: 1.406 MB / 465.7 MB, free: 6.371 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.546e-05/0.4318, allocations: 10.55 kB / 465.7 MB, free: 6.367 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.526e-05/0.4318, allocations: 5.375 kB / 465.7 MB, free: 6.367 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001029/0.4328, allocations: 352 kB / 466.1 MB, free: 6.191 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009306/0.4338, allocations: 213 kB / 466.3 MB, free: 6.145 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009137/0.4429, allocations: 8.477 MB / 474.8 MB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001003/0.4439, allocations: 41.61 kB / 474.8 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.017e-05/0.444, allocations: 55.58 kB / 474.9 MB, free: 14.41 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (119): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,4,100.0%), (1,2,100.0%), (1,19,100.0%), (1,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005989/0.4446, allocations: 268 kB / 475.1 MB, free: 14.19 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001448/0.4447, allocations: 74.81 kB / 475.2 MB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003017/0.4478, allocations: 1.323 MB / 476.5 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.544e-05/0.4478, allocations: 13.59 kB / 476.5 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.574e-05/0.4478, allocations: 6.75 kB / 476.5 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.367e-05/0.4478, allocations: 9.812 kB / 476.5 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005174/0.453, allocations: 2.614 MB / 479.2 MB, free: 11.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.088e-05/0.453, allocations: 4 kB / 479.2 MB, free: 11.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007742/0.4538, allocations: 159.8 kB / 479.3 MB, free: 11.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009017/0.4547, allocations: 331.4 kB / 479.6 MB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.826e-05/0.4547, allocations: 28.12 kB / 479.7 MB, free: 10.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008518/0.4633, allocations: 8.13 MB / 487.8 MB, free: 2.141 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.4633, allocations: 4 kB / 487.8 MB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003658/0.4669, allocations: 1.864 MB / 489.7 MB, free: 224 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004328/0.4674, allocations: 240.5 kB / 489.9 MB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001047/0.4675, allocations: 24 kB / 489.9 MB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005469/0.468, allocations: 43.98 kB / 490 MB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002226/0.4682, allocations: 96.8 kB / 490.1 MB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.112e-05/0.4683, allocations: 39.98 kB / 490.1 MB, free: 15.77 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003606/0.4687, allocations: 283.1 kB / 490.4 MB, free: 15.48 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4687, allocations: 0 / 490.4 MB, free: 15.48 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001374/0.47, allocations: 319.9 kB / 490.7 MB, free: 15.17 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,sourceQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,19,100.0%), (1,2,100.0%), (1,4,100.0%), (2,16,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003892/0.4739, allocations: 2.493 MB / 493.2 MB, free: 12.62 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003063/0.477, allocations: 1.585 MB / 494.8 MB, free: 10.98 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.477, allocations: 0 / 494.8 MB, free: 10.98 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001767/0.4788, allocations: 1.126 MB / 495.9 MB, free: 9.805 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006393/0.4794, allocations: 85.48 kB / 496 MB, free: 9.723 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01232/0.4917, allocations: 7.468 MB / 0.4916 GB, free: 1.977 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007243/0.4925, allocations: 1.032 MB / 0.4927 GB, free: 0.918 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004092/0.4929, allocations: 98.44 kB / 0.4927 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004677/0.4933, allocations: 355.3 kB / 0.4931 GB, free: 484 kB / 398.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4933, allocations: 8 kB / 0.4931 GB, free: 476 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6053/1.099, allocations: 19.17 MB / 0.5118 GB, free: 13.49 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.98/18.08, allocations: 7.328 kB / 0.5118 GB, free: 13.49 MB / 430.1 MB " [Timeout remaining time 642] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-07 Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 20.899943722004537] Failed to read output from testmodel.py, exit status != 0: ['time', 'coil.Phi', 'coil.i', 'r_mLeak.port_p.Phi', 'rootMeanSquare.mean.x', 'sourceQS.pin_p.reference.gamma'] 18.226824796991423 18.240705732 17.849804848 Calling exit ...