Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.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.001553/0.001553, allocations: 118.7 kB / 18.5 MB, free: 4.602 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.00211/0.00211, allocations: 210.5 kB / 21.46 MB, free: 1.648 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.494/1.494, allocations: 230.5 MB / 254.7 MB, free: 15.04 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.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_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.002125/0.002125, allocations: 79.8 kB / 373.6 MB, free: 10.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1138, allocations: 53.31 MB / 426.9 MB, free: 4.875 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004939/0.1187, allocations: 2.837 MB / 429.7 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001827/0.1206, allocations: 0.7867 MB / 430.5 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003013/0.1209, allocations: 11.94 kB / 430.5 MB, free: 1.219 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003177/0.1212, allocations: 71.36 kB / 430.6 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004684/0.1216, allocations: 87.25 kB / 430.7 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003938/0.122, allocations: 119.8 kB / 430.8 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000566/0.1226, allocations: 394.5 kB / 431.2 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002359/0.1228, allocations: 94.92 kB / 431.3 MB, free: 472 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003666/0.1232, allocations: 159.4 kB / 431.4 MB, free: 312 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002145/0.1234, allocations: 163.2 kB / 431.6 MB, free: 148 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.911e-05/0.1235, allocations: 32 kB / 431.6 MB, free: 116 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.118e-05/0.1235, allocations: 36 kB / 431.6 MB, free: 80 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.028e-05/0.1236, allocations: 79.69 kB / 431.7 MB, free: 0 / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2254/0.349, allocations: 168 kB / 431.9 MB, free: 8.059 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005769/0.3496, allocations: 403.4 kB / 432.3 MB, free: 7.992 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.3496, allocations: 1.281 kB / 432.3 MB, free: 7.992 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3496, allocations: 0 / 432.3 MB, free: 7.992 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.999e-06/0.3496, allocations: 1.156 kB / 432.3 MB, free: 7.992 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001175/0.3508, allocations: 0.6459 MB / 432.9 MB, free: 7.527 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/0.3508, allocations: 9.781 kB / 432.9 MB, free: 7.527 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.117e-05/0.3509, allocations: 72.7 kB / 433 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.763e-05/0.351, allocations: 39.02 kB / 433 MB, free: 7.469 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000362/0.3513, allocations: 280.3 kB / 433.3 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.03e-05/0.3514, allocations: 21.62 kB / 433.3 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.268e-05/0.3514, allocations: 32.72 kB / 433.4 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005541/0.352, allocations: 292.9 kB / 433.7 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.352, allocations: 1.188 kB / 433.7 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.535e-05/0.352, allocations: 12.16 kB / 433.7 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.352, allocations: 7.688 kB / 433.7 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005461/0.3526, allocations: 252.9 kB / 433.9 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001484/0.3541, allocations: 1.107 MB / 435 MB, free: 6.609 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003546/0.3544, allocations: 145.8 kB / 435.2 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001683/0.3546, allocations: 62.47 kB / 435.2 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.558e-05/0.3546, allocations: 4.125 kB / 435.2 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.537e-05/0.3546, allocations: 41.55 kB / 435.3 MB, free: 6.531 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.854e-06/0.3546, allocations: 0 / 435.3 MB, free: 6.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001999/0.3566, allocations: 0.5908 MB / 435.9 MB, free: 6.414 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.981e-05/0.3567, allocations: 54.75 kB / 435.9 MB, free: 6.352 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002884/0.357, allocations: 274.2 kB / 436.2 MB, free: 6.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.784e-05/0.357, allocations: 30.8 kB / 436.2 MB, free: 6.199 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/0.3571, allocations: 233.5 kB / 436.5 MB, free: 6.039 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.378e-05/0.3571, allocations: 79.33 kB / 436.5 MB, free: 5.988 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.929e-05/0.3572, allocations: 73.98 kB / 436.6 MB, free: 5.961 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.431e-05/0.3573, allocations: 334.7 kB / 436.9 MB, free: 5.648 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002786/0.3576, allocations: 96.27 kB / 437 MB, free: 5.648 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000327/0.3579, allocations: 191.9 kB / 437.2 MB, free: 5.527 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005679/0.3585, allocations: 298.8 kB / 437.5 MB, free: 5.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.3585, allocations: 1.125 kB / 437.5 MB, free: 5.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008233/0.3593, allocations: 393.5 kB / 437.9 MB, free: 5.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/0.3593, allocations: 13.34 kB / 437.9 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.3594, allocations: 3.594 kB / 437.9 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002702/0.3596, allocations: 57.89 kB / 438 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003288/0.36, allocations: 70.19 kB / 438 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001513/0.3615, allocations: 2.835 MB / 440.9 MB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003149/0.3618, allocations: 34.14 kB / 440.9 MB, free: 2.613 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.543e-05/0.3618, allocations: 15.88 kB / 440.9 MB, free: 2.613 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (37): * Single equations (assignments): 35 * 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.0001555/0.362, allocations: 155.6 kB / 441.1 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.469e-05/0.362, allocations: 23.89 kB / 441.1 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.415e-05/0.3621, allocations: 30.34 kB / 441.1 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.3621, allocations: 2.656 kB / 441.1 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/0.3621, allocations: 4.25 kB / 441.1 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.3621, allocations: 4.656 kB / 441.1 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003856/0.3625, allocations: 334.2 kB / 441.5 MB, free: 2.273 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.644e-06/0.3625, allocations: 0.875 kB / 441.5 MB, free: 2.273 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002077/0.3627, allocations: 37.56 kB / 441.5 MB, free: 2.273 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001652/0.3629, allocations: 57.88 kB / 441.6 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.632e-05/0.3629, allocations: 5.328 kB / 441.6 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001581/0.3645, allocations: 2.831 MB / 444.4 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.3645, allocations: 6.469 kB / 444.4 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007571/0.3652, allocations: 372.1 kB / 444.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.896e-05/0.3653, allocations: 105.5 kB / 444.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.293e-05/0.3654, allocations: 5.984 kB / 444.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002088/0.3656, allocations: 12.77 kB / 444.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.138e-05/0.3656, allocations: 23.19 kB / 444.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.832e-05/0.3657, allocations: 8.531 kB / 444.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002357/0.3659, allocations: 187.8 kB / 445.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3659, allocations: 1.469 kB / 445.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004708/0.3664, allocations: 73.66 kB / 445.2 MB, free: 14.96 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (18): * Single equations (assignments): 16 * 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.001127/0.3675, allocations: 0.9173 MB / 446.1 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001064/0.3686, allocations: 477 kB / 446.5 MB, free: 13.92 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3686, allocations: 0 / 446.5 MB, free: 13.92 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005348/0.3691, allocations: 339.7 kB / 446.9 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000384/0.3695, allocations: 27.22 kB / 446.9 MB, free: 13.65 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004842/0.3743, allocations: 2.962 MB / 449.9 MB, free: 11.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000496/0.3748, allocations: 0.7719 MB / 450.6 MB, free: 10.94 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001463/0.375, allocations: 28.98 kB / 450.7 MB, free: 10.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001616/0.3751, allocations: 102.4 kB / 450.8 MB, free: 10.85 MB / 366.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3751, allocations: 4 kB / 450.8 MB, free: 10.85 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03954/0.4147, allocations: 5.668 MB / 456.4 MB, free: 10.15 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.32/10.73, allocations: 5.281 kB / 456.4 MB, free: 10.15 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Magnetic_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_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.171121917199343] Failed to read output from testmodel.py, exit status != 0: ['time', 'magFluxSensor.Phi', 'voltageSensor.v'] 10.821363478899002 10.845479989 10.492410471 Calling exit ...