Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001563/0.001563, allocations: 101.5 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001613/0.001613, allocations: 186.8 kB / 24.49 MB, free: 3.961 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.467/1.467, allocations: 225.7 MB / 253.3 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001549/0.001549, allocations: 51.92 kB / 371.2 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3575/0.3591, allocations: 52.18 MB / 423.3 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.008936/0.368, allocations: 5.813 MB / 429.2 MB, free: 8.586 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005086/0.3731, allocations: 2.375 MB / 431.5 MB, free: 6.203 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005237/0.3736, allocations: 23.94 kB / 431.6 MB, free: 6.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003109/0.3767, allocations: 1.186 MB / 432.7 MB, free: 4.992 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001862/0.3786, allocations: 0.664 MB / 433.4 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002472/0.3811, allocations: 1.045 MB / 434.5 MB, free: 3.277 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001712/0.3828, allocations: 1.071 MB / 435.5 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001363/0.3841, allocations: 0.7818 MB / 436.3 MB, free: 1.395 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006631/0.3848, allocations: 458.3 kB / 436.8 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007597/0.3856, allocations: 0.5407 MB / 437.3 MB, free: 412 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001458/0.3857, allocations: 96 kB / 437.4 MB, free: 316 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001029/0.3867, allocations: 395.7 kB / 437.8 MB, free: 15.92 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002392/0.387, allocations: 235.1 kB / 438 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004708/0.3874, allocations: 426 kB / 438.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002099/0.3895, allocations: 1.522 MB / 439.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.3896, allocations: 0 / 439.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.3896, allocations: 0 / 439.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.782e-05/0.3896, allocations: 0 / 439.9 MB, free: 13.75 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.004695/0.3943, allocations: 1.68 MB / 441.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.138e-05/0.3943, allocations: 16.03 kB / 441.6 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.367e-05/0.3944, allocations: 33.52 kB / 441.7 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002514/0.3946, allocations: 171.5 kB / 441.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003067/0.3977, allocations: 483.8 kB / 442.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00075/0.3985, allocations: 435.7 kB / 442.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.13e-05/0.3986, allocations: 82.23 kB / 442.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001941/0.3987, allocations: 120 kB / 442.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002008/0.4008, allocations: 1.025 MB / 444 MB, free: 9.609 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.974e-05/0.4008, allocations: 4 kB / 444 MB, free: 9.605 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001045/0.4009, allocations: 44 kB / 444 MB, free: 9.562 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.773e-05/0.4009, allocations: 28 kB / 444 MB, free: 9.535 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001943/0.4029, allocations: 0.9614 MB / 445 MB, free: 8.566 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005834/0.4087, allocations: 3.083 MB / 448.1 MB, free: 5.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00174/0.4104, allocations: 0.8209 MB / 448.9 MB, free: 4.512 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008068/0.4112, allocations: 399.5 kB / 449.3 MB, free: 4.117 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.576e-05/0.4113, allocations: 20.98 kB / 449.3 MB, free: 4.098 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009788/0.4123, allocations: 0.5253 MB / 449.8 MB, free: 3.535 MB / 350.1 MB Notification: Performance of pre-optimization done (n=98): time 3.256e-06/0.4123, allocations: 3.938 kB / 449.8 MB, free: 3.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=130): time 0.01066/0.423, allocations: 3.895 MB / 453.7 MB, free: 15.6 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/0.4231, allocations: 149.8 kB / 453.9 MB, free: 15.42 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000567/0.4236, allocations: 401.5 kB / 454.3 MB, free: 15.02 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.07e-05/0.4237, allocations: 49.7 kB / 454.3 MB, free: 14.97 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004287/0.4242, allocations: 429 kB / 454.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004435/0.4246, allocations: 460 kB / 455.2 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003625/0.425, allocations: 210.9 kB / 455.4 MB, free: 13.88 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002114/0.4252, allocations: 378.8 kB / 455.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007889/0.426, allocations: 362.5 kB / 456.1 MB, free: 13.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009858/0.427, allocations: 0.6009 MB / 456.7 MB, free: 12.47 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001711/0.4287, allocations: 0.9654 MB / 457.7 MB, free: 11.45 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.4287, allocations: 4 kB / 457.7 MB, free: 11.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.00288/0.4316, allocations: 1.39 MB / 459.1 MB, free: 10.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.542e-05/0.4316, allocations: 8 kB / 459.1 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.724e-05/0.4316, allocations: 8 kB / 459.1 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009989/0.4326, allocations: 343.1 kB / 459.4 MB, free: 9.672 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009331/0.4335, allocations: 207.7 kB / 459.6 MB, free: 9.469 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009324/0.4429, allocations: 8.001 MB / 467.6 MB, free: 1.012 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007912/0.4436, allocations: 47.98 kB / 467.7 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001255/0.4438, allocations: 52.11 kB / 467.7 MB, free: 0.9141 MB / 366.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.0005171/0.4443, allocations: 261.6 kB / 468 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000168/0.4445, allocations: 75.67 kB / 468.1 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002899/0.4474, allocations: 1.333 MB / 469.4 MB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.556e-05/0.4474, allocations: 12 kB / 469.4 MB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.29e-05/0.4474, allocations: 15.92 kB / 469.4 MB, free: 15.19 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.432e-05/0.4474, allocations: 7.969 kB / 469.4 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005078/0.4525, allocations: 2.413 MB / 471.8 MB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/0.4525, allocations: 0 / 471.8 MB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007606/0.4533, allocations: 171.7 kB / 472 MB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008802/0.4541, allocations: 319.4 kB / 472.3 MB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.732e-05/0.4542, allocations: 27.98 kB / 472.3 MB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008491/0.4627, allocations: 7.641 MB / 480 MB, free: 4.086 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.85e-06/0.4627, allocations: 4 kB / 480 MB, free: 4.082 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003772/0.4665, allocations: 1.864 MB / 481.9 MB, free: 2.164 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004341/0.4669, allocations: 151.6 kB / 482 MB, free: 2.016 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001578/0.4671, allocations: 27.98 kB / 482 MB, free: 1.988 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006309/0.4677, allocations: 43.98 kB / 482.1 MB, free: 1.945 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002483/0.468, allocations: 108.8 kB / 482.2 MB, free: 1.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.723e-05/0.468, allocations: 32 kB / 482.2 MB, free: 1.809 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003809/0.4684, allocations: 275.1 kB / 482.5 MB, free: 1.539 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4684, allocations: 0 / 482.5 MB, free: 1.539 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00147/0.4699, allocations: 320 kB / 482.8 MB, free: 1.227 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 3 (rootMeanSquare.mean.x,coil.i,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%), (1,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004168/0.4741, allocations: 2.484 MB / 485.3 MB, free: 14.68 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003065/0.4771, allocations: 1.577 MB / 486.9 MB, free: 13.05 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.4771, allocations: 4.062 kB / 486.9 MB, free: 13.04 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001857/0.479, allocations: 1.118 MB / 488 MB, free: 11.88 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006519/0.4796, allocations: 77.42 kB / 488.1 MB, free: 11.8 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01419/0.4938, allocations: 7.431 MB / 495.5 MB, free: 4.086 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007546/0.4946, allocations: 440.2 kB / 495.9 MB, free: 3.625 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005106/0.4951, allocations: 98.31 kB / 496 MB, free: 3.527 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005406/0.4956, allocations: 351.2 kB / 496.4 MB, free: 3.184 MB / 398.1 MB Notification: Performance of SimCode: time 1.293e-06/0.4956, allocations: 0 / 496.4 MB, free: 3.184 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06925/0.5649, allocations: 19.88 MB / 0.5041 GB, free: 15.56 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.76/13.32, allocations: 7.5 kB / 0.5041 GB, free: 15.55 MB / 430.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.17720657098107] 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'] 13.494010257069021 13.507205242 13.114695152 Calling exit ...