Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.001692/0.001692, allocations: 118.6 kB / 18.5 MB, free: 4.434 MB / 14.72 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.002092/0.002092, allocations: 218.6 kB / 21.47 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.521/1.521, allocations: 230.5 MB / 254.7 MB, free: 15.21 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-beta.om/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(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001895/0.001895, allocations: 72.02 kB / 373.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.119, allocations: 53.31 MB / 426.9 MB, free: 4.887 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.2499/0.3689, allocations: 5.08 MB / 432 MB, free: 7.598 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003601/0.3725, allocations: 2.167 MB / 434.1 MB, free: 7.559 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004424/0.3729, allocations: 19.69 kB / 434.2 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002922/0.3758, allocations: 1.416 MB / 435.6 MB, free: 7.305 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001239/0.3771, allocations: 425.5 kB / 436 MB, free: 7.168 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002689/0.3798, allocations: 1.206 MB / 437.2 MB, free: 6.973 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001386/0.3812, allocations: 0.739 MB / 437.9 MB, free: 6.789 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000919/0.3821, allocations: 0.5092 MB / 438.4 MB, free: 6.559 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005459/0.3826, allocations: 331.1 kB / 438.8 MB, free: 6.398 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004862/0.3831, allocations: 430.1 kB / 439.2 MB, free: 6.188 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001253/0.3832, allocations: 71.38 kB / 439.3 MB, free: 6.184 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001063/0.3843, allocations: 412.8 kB / 439.7 MB, free: 6.062 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000119/0.3844, allocations: 164.3 kB / 439.8 MB, free: 5.949 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003488/0.3848, allocations: 377.5 kB / 440.2 MB, free: 5.711 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001978/0.3867, allocations: 1.203 MB / 441.4 MB, free: 5.203 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3867, allocations: 0 / 441.4 MB, free: 5.203 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3868, allocations: 0 / 441.4 MB, free: 5.203 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.052e-05/0.3868, allocations: 1.125 kB / 441.4 MB, free: 5.203 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.004653/0.3914, allocations: 1.479 MB / 442.9 MB, free: 4.367 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.302e-05/0.3915, allocations: 9.281 kB / 442.9 MB, free: 4.367 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001516/0.3916, allocations: 138.9 kB / 443 MB, free: 4.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00269/0.3943, allocations: 366 kB / 443.4 MB, free: 4.188 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002661/0.3946, allocations: 251.9 kB / 443.6 MB, free: 3.926 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.48e-05/0.3947, allocations: 64.78 kB / 443.7 MB, free: 3.898 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000197/0.3949, allocations: 82.89 kB / 443.8 MB, free: 3.871 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001736/0.3966, allocations: 0.8712 MB / 444.6 MB, free: 3.504 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.671e-05/0.3966, allocations: 5.828 kB / 444.6 MB, free: 3.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.412e-05/0.3967, allocations: 34.81 kB / 444.7 MB, free: 3.473 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.298e-05/0.3967, allocations: 22.77 kB / 444.7 MB, free: 3.473 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00184/0.3986, allocations: 0.7917 MB / 445.5 MB, free: 3.203 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004599/0.4032, allocations: 3.015 MB / 448.5 MB, free: 1.156 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001078/0.4043, allocations: 0.9584 MB / 449.5 MB, free: 408 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004829/0.4047, allocations: 221.8 kB / 449.7 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001337/0.4049, allocations: 187.2 kB / 449.9 MB, free: 116 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.422e-05/0.4049, allocations: 39.52 kB / 449.9 MB, free: 72 kB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.635e-06/0.4049, allocations: 0 / 449.9 MB, free: 72 kB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.007628/0.4125, allocations: 2.399 MB / 452.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.243e-05/0.4126, allocations: 87.66 kB / 452.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004321/0.413, allocations: 306.3 kB / 452.7 MB, free: 14.7 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.347e-05/0.4131, allocations: 35.08 kB / 452.7 MB, free: 14.66 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003018/0.4134, allocations: 367.8 kB / 453.1 MB, free: 14.37 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002207/0.4136, allocations: 223 kB / 453.3 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002664/0.4139, allocations: 146.3 kB / 453.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000205/0.4141, allocations: 359.5 kB / 453.8 MB, free: 13.78 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007177/0.4148, allocations: 263.6 kB / 454 MB, free: 13.7 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009779/0.4158, allocations: 0.5012 MB / 454.5 MB, free: 13.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001695/0.4175, allocations: 0.8125 MB / 455.4 MB, free: 12.78 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.4175, allocations: 5.312 kB / 455.4 MB, free: 12.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002072/0.4196, allocations: 0.8968 MB / 456.3 MB, free: 12.42 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.652e-05/0.4196, allocations: 7.375 kB / 456.3 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.951e-05/0.4196, allocations: 12.44 kB / 456.3 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002521/0.4199, allocations: 69.89 kB / 456.4 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008291/0.4207, allocations: 198.5 kB / 456.5 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002712/0.4234, allocations: 2.862 MB / 459.4 MB, free: 9.504 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007457/0.4241, allocations: 65.28 kB / 459.5 MB, free: 9.484 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.363e-05/0.4242, allocations: 34.5 kB / 459.5 MB, free: 9.48 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004113/0.4246, allocations: 218.9 kB / 459.7 MB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001104/0.4247, allocations: 47.16 kB / 459.8 MB, free: 9.266 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002026/0.4268, allocations: 0.7312 MB / 460.5 MB, free: 8.965 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.323e-06/0.4268, allocations: 6.094 kB / 460.5 MB, free: 8.965 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.4268, allocations: 1.5 kB / 460.5 MB, free: 8.965 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.4268, allocations: 4.531 kB / 460.5 MB, free: 8.965 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002959/0.4297, allocations: 1.404 MB / 461.9 MB, free: 8.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.4297, allocations: 5.781 kB / 461.9 MB, free: 8.016 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006413/0.4304, allocations: 129.3 kB / 462 MB, free: 7.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002045/0.4306, allocations: 58.11 kB / 462.1 MB, free: 7.941 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.147e-05/0.4306, allocations: 16.95 kB / 462.1 MB, free: 7.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002483/0.4331, allocations: 2.846 MB / 465 MB, free: 5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.4331, allocations: 4.812 kB / 465 MB, free: 4.996 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00267/0.4358, allocations: 1.083 MB / 466.1 MB, free: 4.367 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002974/0.4361, allocations: 171.6 kB / 466.2 MB, free: 4.199 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.903e-05/0.4362, allocations: 10.91 kB / 466.2 MB, free: 4.191 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004958/0.4367, allocations: 42.89 kB / 466.3 MB, free: 4.172 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001403/0.4368, allocations: 49.02 kB / 466.3 MB, free: 4.145 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.242e-05/0.4368, allocations: 20.69 kB / 466.3 MB, free: 4.137 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002771/0.4371, allocations: 208.5 kB / 466.5 MB, free: 4.004 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4371, allocations: 0 / 466.5 MB, free: 4.004 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009715/0.4381, allocations: 173 kB / 466.7 MB, free: 3.98 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSource.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003227/0.4413, allocations: 1.677 MB / 468.4 MB, free: 2.797 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002277/0.4436, allocations: 0.8804 MB / 469.3 MB, free: 2.266 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.88e-06/0.4436, allocations: 1.375 kB / 469.3 MB, free: 2.266 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001052/0.4447, allocations: 0.5215 MB / 469.8 MB, free: 1.895 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004615/0.4451, allocations: 50.92 kB / 469.8 MB, free: 1.859 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009619/0.4547, allocations: 5.09 MB / 474.9 MB, free: 14.23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006742/0.4554, allocations: 0.879 MB / 475.8 MB, free: 13.46 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004321/0.4558, allocations: 91.73 kB / 475.9 MB, free: 13.4 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003793/0.4562, allocations: 225.2 kB / 476.1 MB, free: 13.21 MB / 382.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4562, allocations: 0 / 476.1 MB, free: 13.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05183/0.508, allocations: 11.36 MB / 487.5 MB, free: 2.988 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.75/13.26, allocations: 14.53 kB / 487.5 MB, free: 2.977 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.702171379234642] Failed to read output from testmodel.py, exit status != 0: ['time', 'magFluxSensor.Phi.re', 'magFluxSensor.Phi.im', 'voltageSensor.v.re', 'voltageSensor.v.im'] 13.354542249348015 13.375895993 12.985085178 Calling exit ...