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.00176/0.00176, allocations: 117 kB / 17.74 MB, free: 5.355 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.002046/0.002047, allocations: 182.9 kB / 20.67 MB, free: 2.426 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.453/1.453, allocations: 222.9 MB / 246.4 MB, free: 4.219 MB / 190.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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001721/0.001721, allocations: 51.92 kB / 357.5 MB, free: 8.836 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1184, allocations: 49.43 MB / 406.9 MB, free: 7.359 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.008305/0.1267, allocations: 6.456 MB / 413.4 MB, free: 0.875 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005006/0.1318, allocations: 2.538 MB / 415.9 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00071/0.1325, allocations: 20 kB / 415.9 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003087/0.1356, allocations: 1.271 MB / 417.2 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002153/0.1378, allocations: 0.6867 MB / 417.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002401/0.1402, allocations: 1.1 MB / 419 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001584/0.1418, allocations: 1.067 MB / 420.1 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001443/0.1433, allocations: 0.903 MB / 421 MB, free: 9.246 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006418/0.1439, allocations: 438.4 kB / 421.4 MB, free: 8.816 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007859/0.1447, allocations: 0.5368 MB / 421.9 MB, free: 8.277 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001611/0.1449, allocations: 96 kB / 422 MB, free: 8.184 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001211/0.1461, allocations: 411.6 kB / 422.4 MB, free: 7.781 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002691/0.1464, allocations: 239.1 kB / 422.7 MB, free: 7.547 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005868/0.147, allocations: 0.517 MB / 423.2 MB, free: 7.027 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002246/0.1492, allocations: 1.502 MB / 424.7 MB, free: 5.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1493, allocations: 0 / 424.7 MB, free: 5.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1493, allocations: 0 / 424.7 MB, free: 5.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.388e-05/0.1493, allocations: 0 / 424.7 MB, free: 5.52 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.004463/0.1538, allocations: 1.665 MB / 426.3 MB, free: 3.797 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/0.1538, allocations: 8.031 kB / 426.4 MB, free: 3.789 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002674/0.1541, allocations: 175.4 kB / 426.5 MB, free: 3.605 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003092/0.1572, allocations: 483.8 kB / 427 MB, free: 3.133 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007834/0.158, allocations: 498.3 kB / 427.5 MB, free: 2.609 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.495e-05/0.1581, allocations: 86.17 kB / 427.6 MB, free: 2.523 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001669/0.1583, allocations: 112 kB / 427.7 MB, free: 2.414 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00195/0.1602, allocations: 0.9747 MB / 428.7 MB, free: 1.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.434e-05/0.1603, allocations: 0 / 428.7 MB, free: 1.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001005/0.1604, allocations: 48 kB / 428.7 MB, free: 1.363 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.832e-05/0.1604, allocations: 28 kB / 428.7 MB, free: 1.336 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001909/0.1623, allocations: 0.9653 MB / 429.7 MB, free: 372 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2445/0.4069, allocations: 3.67 MB / 433.4 MB, free: 20.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001743/0.4086, allocations: 1.557 MB / 434.9 MB, free: 19.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007418/0.4094, allocations: 434.5 kB / 435.3 MB, free: 19.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001069/0.4095, allocations: 101.9 kB / 435.4 MB, free: 19.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008971/0.4104, allocations: 472.8 kB / 435.9 MB, free: 19.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=96): time 3.576e-06/0.4104, allocations: 0 / 435.9 MB, free: 19.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.009292/0.4197, allocations: 4.02 MB / 439.9 MB, free: 18.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.598e-05/0.4198, allocations: 142.8 kB / 440.1 MB, free: 17.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004531/0.4203, allocations: 399 kB / 440.5 MB, free: 17.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.165e-05/0.4203, allocations: 45.52 kB / 440.5 MB, free: 17.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002573/0.4206, allocations: 433.3 kB / 440.9 MB, free: 17.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002545/0.4209, allocations: 447.3 kB / 441.4 MB, free: 17.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002833/0.4211, allocations: 205 kB / 441.6 MB, free: 17.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.4213, allocations: 380.9 kB / 441.9 MB, free: 16.97 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007423/0.422, allocations: 351.5 kB / 442.3 MB, free: 16.97 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008517/0.4229, allocations: 0.5455 MB / 442.8 MB, free: 16.79 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001623/0.4245, allocations: 0.9447 MB / 443.8 MB, free: 16.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.017e-06/0.4245, allocations: 5.25 kB / 443.8 MB, free: 16.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.003636/0.4282, allocations: 1.391 MB / 445.2 MB, free: 16.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.62e-05/0.4282, allocations: 9.922 kB / 445.2 MB, free: 16.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.609e-05/0.4283, allocations: 6.641 kB / 445.2 MB, free: 16.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001078/0.4294, allocations: 347.5 kB / 445.5 MB, free: 16.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008737/0.4302, allocations: 209.8 kB / 445.7 MB, free: 16.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007142/0.4374, allocations: 8.48 MB / 454.2 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007522/0.4382, allocations: 50.03 kB / 454.3 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001085/0.4383, allocations: 47.14 kB / 454.3 MB, free: 8.902 MB / 350.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 (114): * Single equations (assignments): 110 * 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.0004788/0.4388, allocations: 260.2 kB / 454.6 MB, free: 8.691 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001572/0.4389, allocations: 77.19 kB / 454.6 MB, free: 8.652 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002741/0.4417, allocations: 1.307 MB / 455.9 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.627e-05/0.4417, allocations: 16.94 kB / 456 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.643e-05/0.4418, allocations: 10.88 kB / 456 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.94e-05/0.4418, allocations: 7.016 kB / 456 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005082/0.4469, allocations: 2.523 MB / 458.5 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.307e-06/0.4469, allocations: 2.812 kB / 458.5 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007404/0.4476, allocations: 149.6 kB / 458.6 MB, free: 6.777 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008827/0.4485, allocations: 335.8 kB / 459 MB, free: 6.664 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.254e-05/0.4486, allocations: 26.81 kB / 459 MB, free: 6.648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006767/0.4554, allocations: 8.12 MB / 467.1 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.656e-06/0.4554, allocations: 4.062 kB / 467.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003439/0.4589, allocations: 1.824 MB / 468.9 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004812/0.4594, allocations: 228.3 kB / 469.2 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001538/0.4596, allocations: 23.97 kB / 469.2 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000594/0.4602, allocations: 37.83 kB / 469.2 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002416/0.4604, allocations: 101.9 kB / 469.3 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.667e-05/0.4605, allocations: 40.88 kB / 469.4 MB, free: 14.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000384/0.4609, allocations: 267.6 kB / 469.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4609, allocations: 1.641 kB / 469.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001613/0.4625, allocations: 310.6 kB / 469.9 MB, free: 14.23 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (85): * Single equations (assignments): 80 * 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.004332/0.4669, allocations: 2.448 MB / 472.4 MB, free: 12.64 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003143/0.47, allocations: 1.622 MB / 474 MB, free: 11.6 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.47, allocations: 0 / 474 MB, free: 11.6 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001959/0.472, allocations: 1.149 MB / 475.2 MB, free: 10.54 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000674/0.4727, allocations: 77.73 kB / 475.2 MB, free: 10.47 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01391/0.4866, allocations: 7.36 MB / 482.6 MB, free: 2.863 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001046/0.4877, allocations: 1.022 MB / 483.6 MB, free: 1.816 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004974/0.4882, allocations: 107.5 kB / 483.7 MB, free: 1.711 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005471/0.4888, allocations: 344 kB / 484.1 MB, free: 1.375 MB / 366.1 MB Notification: Performance of SimCode: time 9.82e-07/0.4888, allocations: 0 / 484.1 MB, free: 1.375 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.086/0.5748, allocations: 18.2 MB / 0.4905 GB, free: 15.34 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.31/16.89, allocations: 5.891 kB / 0.4905 GB, free: 15.33 MB / 398.1 MB " [Timeout remaining time 643] (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: 19.31959442817606] 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'] 16.989487207960337 17.009324858 16.856344163 Calling exit ...