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.00163/0.00163, allocations: 108.6 kB / 21.22 MB, free: 0.7305 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.001595/0.001595, allocations: 191.5 kB / 24.5 MB, free: 4.09 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.458/1.458, allocations: 225.6 MB / 253.3 MB, free: 13.03 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.00149/0.00149, allocations: 43.92 kB / 371.2 MB, free: 9.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3194/0.3209, allocations: 52.19 MB / 423.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.008692/0.3296, allocations: 6.531 MB / 430 MB, free: 8.031 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00534/0.3349, allocations: 2.569 MB / 432.5 MB, free: 5.453 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006041/0.3355, allocations: 24 kB / 432.5 MB, free: 5.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003151/0.3387, allocations: 1.283 MB / 433.8 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001915/0.3406, allocations: 0.6981 MB / 434.5 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002296/0.3429, allocations: 1.112 MB / 435.6 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001571/0.3444, allocations: 1.063 MB / 436.7 MB, free: 1.258 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00133/0.3458, allocations: 0.7904 MB / 437.5 MB, free: 460 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006059/0.3464, allocations: 446.4 kB / 437.9 MB, free: 12 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008717/0.3472, allocations: 0.5486 MB / 438.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001558/0.3474, allocations: 96 kB / 438.6 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001047/0.3484, allocations: 399.6 kB / 439 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000245/0.3487, allocations: 239.1 kB / 439.2 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006043/0.3493, allocations: 0.513 MB / 439.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002201/0.3515, allocations: 1.51 MB / 441.2 MB, free: 12.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.3515, allocations: 0 / 441.2 MB, free: 12.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3515, allocations: 3.938 kB / 441.2 MB, free: 12.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.666e-05/0.3515, allocations: 4 kB / 441.2 MB, free: 12.7 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.004527/0.356, allocations: 1.673 MB / 442.9 MB, free: 10.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.3561, allocations: 12.03 kB / 442.9 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.236e-05/0.3561, allocations: 33.52 kB / 442.9 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002323/0.3564, allocations: 179.5 kB / 443.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003076/0.3595, allocations: 479.8 kB / 443.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000785/0.3602, allocations: 443.8 kB / 444 MB, free: 9.828 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.682e-05/0.3603, allocations: 86.23 kB / 444.1 MB, free: 9.742 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001786/0.3605, allocations: 112 kB / 444.2 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001906/0.3624, allocations: 0.9747 MB / 445.2 MB, free: 8.629 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.54e-05/0.3624, allocations: 4 kB / 445.2 MB, free: 8.625 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.791e-05/0.3625, allocations: 44 kB / 445.2 MB, free: 8.582 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.434e-05/0.3626, allocations: 28 kB / 445.3 MB, free: 8.555 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001923/0.3645, allocations: 0.9613 MB / 446.2 MB, free: 7.586 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006035/0.3705, allocations: 3.514 MB / 449.7 MB, free: 3.891 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001774/0.3723, allocations: 0.8277 MB / 450.6 MB, free: 3.055 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008253/0.3731, allocations: 398.6 kB / 451 MB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.268e-05/0.3732, allocations: 20.98 kB / 451 MB, free: 2.645 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009459/0.3742, allocations: 478.5 kB / 451.4 MB, free: 2.152 MB / 350.1 MB Notification: Performance of pre-optimization done (n=98): time 3.056e-06/0.3742, allocations: 0 / 451.4 MB, free: 2.152 MB / 350.1 MB Notification: Performance of matching and sorting (n=130): time 0.01029/0.3844, allocations: 3.911 MB / 455.4 MB, free: 14.2 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/0.3846, allocations: 145.8 kB / 455.5 MB, free: 14.03 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004914/0.385, allocations: 397.5 kB / 455.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.573e-05/0.3851, allocations: 49.7 kB / 455.9 MB, free: 13.58 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003575/0.3855, allocations: 437 kB / 456.4 MB, free: 13.15 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003789/0.3859, allocations: 460 kB / 456.8 MB, free: 12.7 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000337/0.3862, allocations: 210.9 kB / 457 MB, free: 12.48 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000196/0.3864, allocations: 370.8 kB / 457.4 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000739/0.3871, allocations: 366.5 kB / 457.7 MB, free: 11.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009185/0.388, allocations: 0.5468 MB / 458.3 MB, free: 11.14 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00174/0.3898, allocations: 0.9731 MB / 459.3 MB, free: 10.12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.3898, allocations: 0 / 459.3 MB, free: 10.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.002647/0.3924, allocations: 1.39 MB / 460.6 MB, free: 8.707 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/0.3925, allocations: 7.281 kB / 460.6 MB, free: 8.703 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.3925, allocations: 8 kB / 460.7 MB, free: 8.695 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009187/0.3934, allocations: 355 kB / 461 MB, free: 8.336 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008772/0.3943, allocations: 211.7 kB / 461.2 MB, free: 8.129 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008587/0.4029, allocations: 8.078 MB / 469.3 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008771/0.4037, allocations: 47.98 kB / 469.3 MB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.38e-05/0.4038, allocations: 47.94 kB / 469.4 MB, free: 15.5 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.0004934/0.4043, allocations: 265.6 kB / 469.6 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001269/0.4044, allocations: 75.53 kB / 469.7 MB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00279/0.4072, allocations: 1.329 MB / 471 MB, free: 13.81 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.35e-05/0.4072, allocations: 16 kB / 471.1 MB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/0.4072, allocations: 4 kB / 471.1 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.378e-05/0.4073, allocations: 7.984 kB / 471.1 MB, free: 13.79 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004559/0.4118, allocations: 2.561 MB / 473.6 MB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/0.4118, allocations: 12.2 kB / 473.6 MB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007167/0.4125, allocations: 159.8 kB / 473.8 MB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008462/0.4134, allocations: 328.4 kB / 474.1 MB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.318e-05/0.4135, allocations: 28 kB / 474.1 MB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00789/0.4213, allocations: 7.709 MB / 481.9 MB, free: 2.457 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/0.4214, allocations: 7.938 kB / 481.9 MB, free: 2.449 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003465/0.4248, allocations: 1.864 MB / 483.7 MB, free: 0.5312 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003484/0.4252, allocations: 151.4 kB / 483.9 MB, free: 392 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001087/0.4253, allocations: 28 kB / 483.9 MB, free: 364 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005273/0.4258, allocations: 43.92 kB / 483.9 MB, free: 320 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002265/0.426, allocations: 100.8 kB / 484 MB, free: 220 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.726e-05/0.4261, allocations: 39.98 kB / 484.1 MB, free: 180 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003383/0.4264, allocations: 271.2 kB / 484.3 MB, free: 15.91 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4264, allocations: 0 / 484.3 MB, free: 15.91 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001199/0.4276, allocations: 316 kB / 484.7 MB, free: 15.6 MB / 398.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.003869/0.4315, allocations: 2.485 MB / 487.1 MB, free: 13.05 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003081/0.4346, allocations: 1.58 MB / 488.7 MB, free: 11.42 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.4346, allocations: 0 / 488.7 MB, free: 11.42 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001813/0.4364, allocations: 1.127 MB / 489.8 MB, free: 10.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006652/0.4371, allocations: 81.36 kB / 489.9 MB, free: 10.17 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0127/0.4498, allocations: 7.439 MB / 497.4 MB, free: 2.449 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000764/0.4505, allocations: 1.025 MB / 498.4 MB, free: 1.395 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004434/0.451, allocations: 106.3 kB / 498.5 MB, free: 1.289 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004698/0.4514, allocations: 347.3 kB / 498.8 MB, free: 0.9492 MB / 398.1 MB Notification: Performance of SimCode: time 1.442e-06/0.4514, allocations: 0 / 498.8 MB, free: 0.9492 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1536/0.605, allocations: 19.71 MB / 0.5064 GB, free: 13.41 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.21/13.81, allocations: 4.062 kB / 0.5064 GB, free: 13.41 MB / 430.1 MB " [Timeout remaining time 646] (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.663929636008106] 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.981112720968667 13.995838758 13.641120108 Calling exit ...