Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_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_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 88 kB / 16.31 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 182.6 kB / 17.21 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.475/1.475, allocations: 223.3 MB / 241.2 MB, free: 5.418 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002854/0.0002854, allocations: 6.125 kB / 300.9 MB, free: 6.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1114, allocations: 50.43 MB / 351.4 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004713/0.1161, allocations: 4.294 MB / 355.6 MB, free: 7.262 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002994/0.1191, allocations: 1.869 MB / 357.5 MB, free: 5.383 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002362/0.1194, allocations: 16 kB / 357.5 MB, free: 5.367 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005687/0.12, allocations: 234.8 kB / 357.8 MB, free: 5.137 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001075/0.1211, allocations: 465 kB / 358.2 MB, free: 4.684 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001597/0.1227, allocations: 0.8666 MB / 359.1 MB, free: 3.82 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007828/0.1235, allocations: 0.677 MB / 359.8 MB, free: 3.141 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001968/0.1254, allocations: 1.128 MB / 360.9 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003938/0.1258, allocations: 271 kB / 361.2 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004206/0.1263, allocations: 366.5 kB / 361.5 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.488e-05/0.1263, allocations: 36 kB / 361.5 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007488/0.1271, allocations: 335.7 kB / 361.9 MB, free: 1 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001308/0.1272, allocations: 127.4 kB / 362 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001407/0.1274, allocations: 153.3 kB / 362.1 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009172/0.1283, allocations: 0.8802 MB / 363 MB, free: 15.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1283, allocations: 0 / 363 MB, free: 15.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1283, allocations: 0 / 363 MB, free: 15.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.947e-06/0.1284, allocations: 3.938 kB / 363 MB, free: 15.83 MB / 302.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.003723/0.1321, allocations: 1.334 MB / 364.4 MB, free: 14.45 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.1321, allocations: 12.02 kB / 364.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001548/0.1323, allocations: 131.2 kB / 364.5 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002359/0.1347, allocations: 386.7 kB / 364.9 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002695/0.135, allocations: 254.8 kB / 365.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.047e-05/0.135, allocations: 62 kB / 365.2 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001352/0.1352, allocations: 83.95 kB / 365.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001655/0.1368, allocations: 0.8836 MB / 366.2 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.355e-05/0.1369, allocations: 0 / 366.2 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.299e-05/0.137, allocations: 36 kB / 366.2 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.031e-05/0.137, allocations: 23.94 kB / 366.2 MB, free: 12.53 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001681/0.1387, allocations: 0.8238 MB / 367 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004086/0.1428, allocations: 2.961 MB / 370 MB, free: 8.551 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001219/0.144, allocations: 1.012 MB / 371 MB, free: 7.422 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00051/0.1445, allocations: 254.4 kB / 371.3 MB, free: 7.172 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001023/0.1446, allocations: 97.64 kB / 371.4 MB, free: 7.059 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.17e-05/0.1447, allocations: 43.12 kB / 371.4 MB, free: 7.008 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 2.184e-06/0.1447, allocations: 0 / 371.4 MB, free: 7.008 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.007741/0.1524, allocations: 2.685 MB / 374.1 MB, free: 4.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.216e-05/0.1525, allocations: 85.62 kB / 374.2 MB, free: 4.129 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003328/0.1529, allocations: 299.2 kB / 374.5 MB, free: 3.828 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.933e-05/0.1529, allocations: 33.7 kB / 374.5 MB, free: 3.789 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002218/0.1531, allocations: 370.6 kB / 374.9 MB, free: 3.418 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001683/0.1533, allocations: 208.9 kB / 375.1 MB, free: 3.211 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.025e-05/0.1534, allocations: 16 kB / 375.1 MB, free: 3.195 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.1535, allocations: 346.8 kB / 375.4 MB, free: 2.848 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007534/0.1543, allocations: 289.8 kB / 375.7 MB, free: 2.566 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000904/0.1552, allocations: 0.5277 MB / 376.2 MB, free: 1.938 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008457/0.156, allocations: 362 kB / 376.6 MB, free: 1.586 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.1561, allocations: 4 kB / 376.6 MB, free: 1.582 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002061/0.1581, allocations: 0.9456 MB / 377.5 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.1582, allocations: 11.94 kB / 377.5 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.1582, allocations: 4 kB / 377.5 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002456/0.1584, allocations: 73.61 kB / 377.6 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008287/0.1593, allocations: 215.7 kB / 377.8 MB, free: 324 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001915/0.1612, allocations: 2.648 MB / 380.5 MB, free: 13.4 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000696/0.1619, allocations: 87.89 kB / 380.6 MB, free: 13.31 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.535e-05/0.162, allocations: 35.98 kB / 380.6 MB, free: 13.28 MB / 318.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003437/0.1623, allocations: 217.5 kB / 380.8 MB, free: 13.05 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.848e-05/0.1624, allocations: 39.53 kB / 380.8 MB, free: 13.02 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001916/0.1643, allocations: 0.7858 MB / 381.6 MB, free: 12.22 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.1644, allocations: 11.89 kB / 381.6 MB, free: 12.21 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.1644, allocations: 0 / 381.6 MB, free: 12.21 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.1644, allocations: 7.984 kB / 381.7 MB, free: 12.2 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002601/0.167, allocations: 1.473 MB / 383.1 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.167, allocations: 0 / 383.1 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000683/0.1677, allocations: 143.8 kB / 383.3 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001703/0.1679, allocations: 61.69 kB / 383.3 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.313e-05/0.1679, allocations: 19.98 kB / 383.3 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001857/0.1698, allocations: 2.648 MB / 386 MB, free: 7.523 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1698, allocations: 0 / 386 MB, free: 7.523 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002525/0.1724, allocations: 1.152 MB / 387.1 MB, free: 6.352 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002227/0.1726, allocations: 164.6 kB / 387.3 MB, free: 6.172 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.586e-05/0.1727, allocations: 12 kB / 387.3 MB, free: 6.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000481/0.1732, allocations: 60.02 kB / 387.4 MB, free: 6.102 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/0.1733, allocations: 44.48 kB / 387.4 MB, free: 6.059 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.927e-05/0.1733, allocations: 19.98 kB / 387.4 MB, free: 6.039 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002335/0.1736, allocations: 207.1 kB / 387.6 MB, free: 5.836 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1736, allocations: 3.938 kB / 387.6 MB, free: 5.832 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007667/0.1744, allocations: 172 kB / 387.8 MB, free: 5.664 MB / 318.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002975/0.1773, allocations: 1.752 MB / 389.6 MB, free: 3.871 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002022/0.1794, allocations: 0.9588 MB / 390.5 MB, free: 2.891 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1794, allocations: 0.5 kB / 390.5 MB, free: 2.891 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001006/0.1804, allocations: 0.5745 MB / 391.1 MB, free: 2.289 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004836/0.1809, allocations: 48.59 kB / 391.1 MB, free: 2.242 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006391/0.1873, allocations: 3.448 MB / 394.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000459/0.1878, allocations: 0.881 MB / 395.5 MB, free: 13.73 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005052/0.1883, allocations: 104.4 kB / 395.6 MB, free: 13.63 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003294/0.1886, allocations: 223.3 kB / 395.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of SimCode: time 1.333e-06/0.1886, allocations: 0 / 395.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02483/0.2135, allocations: 10.22 MB / 406 MB, free: 3.441 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002268/0.2138, allocations: 256 kB / 406.3 MB, free: 3.148 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.084/2.298, allocations: 1.375 kB / 406.3 MB, free: 3.148 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat does not exist to compare? outputFormat=mat