Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_NoPhysicalTestLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_NoPhysicalTestLeakage",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.0007643/0.0007643, allocations: 95.2 kB / 17 MB, free: 6.355 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.0007702/0.0007702, allocations: 184.2 kB / 17.89 MB, free: 5.926 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.444/1.444, allocations: 223.2 MB / 241.9 MB, free: 160 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2107/0.2107, allocations: 44.23 MB / 337.2 MB, free: 2.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003088/0.000309, allocations: 8.875 kB / 409.7 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1289/0.1292, allocations: 61.92 MB / 471.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage): time 0.00482/0.134, allocations: 4.518 MB / 476.2 MB, free: 9.105 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002574/0.1367, allocations: 1.445 MB / 477.6 MB, free: 7.652 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002664/0.1369, allocations: 16 kB / 477.6 MB, free: 7.637 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004396/0.1374, allocations: 175 kB / 477.8 MB, free: 7.465 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006138/0.138, allocations: 250.4 kB / 478 MB, free: 7.219 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00111/0.1391, allocations: 0.545 MB / 478.6 MB, free: 6.676 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007362/0.1399, allocations: 0.7346 MB / 479.3 MB, free: 5.938 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002148/0.142, allocations: 1.287 MB / 480.6 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004158/0.1425, allocations: 274.9 kB / 480.9 MB, free: 4.348 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004619/0.1429, allocations: 390.4 kB / 481.3 MB, free: 3.965 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.135e-05/0.143, allocations: 36 kB / 481.3 MB, free: 3.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003661/0.1434, allocations: 147.9 kB / 481.4 MB, free: 3.785 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.864e-05/0.1435, allocations: 131.4 kB / 481.6 MB, free: 3.656 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001431/0.1436, allocations: 177.3 kB / 481.7 MB, free: 3.477 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000815/0.1445, allocations: 0.896 MB / 482.6 MB, free: 2.578 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1445, allocations: 0 / 482.6 MB, free: 2.578 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.91e-07/0.1445, allocations: 0 / 482.6 MB, free: 2.578 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.668e-06/0.1445, allocations: 0 / 482.6 MB, free: 2.578 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.002829/0.1473, allocations: 1.209 MB / 483.9 MB, free: 1.316 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.1474, allocations: 8.031 kB / 483.9 MB, free: 1.309 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001613/0.1475, allocations: 160.2 kB / 484 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001305/0.1489, allocations: 226.8 kB / 484.2 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002685/0.1491, allocations: 258.5 kB / 484.5 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001262/0.1493, allocations: 89.92 kB / 484.6 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001394/0.1494, allocations: 96 kB / 484.7 MB, free: 460 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001582/0.151, allocations: 0.9283 MB / 485.6 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.235e-05/0.1511, allocations: 3.906 kB / 485.6 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001181/0.1512, allocations: 40 kB / 485.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.524e-05/0.1512, allocations: 24 kB / 485.7 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001351/0.1526, allocations: 0.7184 MB / 486.4 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005643/0.1583, allocations: 3.956 MB / 490.3 MB, free: 10.43 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002732/0.1611, allocations: 3.374 MB / 493.7 MB, free: 6.406 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004804/0.1616, allocations: 296.6 kB / 494 MB, free: 6.105 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001159/0.1617, allocations: 97.42 kB / 494.1 MB, free: 5.992 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.175e-05/0.1617, allocations: 38.89 kB / 494.1 MB, free: 5.945 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 3.207e-06/0.1617, allocations: 0 / 494.1 MB, free: 5.945 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.003044/0.1648, allocations: 1.335 MB / 495.5 MB, free: 4.52 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/0.1649, allocations: 136.5 kB / 495.6 MB, free: 4.355 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004816/0.1654, allocations: 314.8 kB / 495.9 MB, free: 4.035 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.018e-05/0.1655, allocations: 37.7 kB / 495.9 MB, free: 3.992 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000275/0.1657, allocations: 406.3 kB / 496.3 MB, free: 3.586 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000197/0.166, allocations: 232.7 kB / 496.6 MB, free: 3.355 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.315e-05/0.166, allocations: 16 kB / 496.6 MB, free: 3.34 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.1662, allocations: 350.8 kB / 496.9 MB, free: 2.988 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003646/0.1665, allocations: 197.9 kB / 497.1 MB, free: 2.797 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005178/0.1671, allocations: 392.7 kB / 497.5 MB, free: 2.336 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004937/0.1676, allocations: 265.7 kB / 497.8 MB, free: 2.078 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.1676, allocations: 0 / 497.8 MB, free: 2.078 MB / 366.1 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.001735/0.1693, allocations: 0.8772 MB / 498.6 MB, free: 1.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.344e-05/0.1694, allocations: 11.95 kB / 498.7 MB, free: 1.168 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.928e-06/0.1694, allocations: 4 kB / 498.7 MB, free: 1.164 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005845/0.17, allocations: 227.6 kB / 498.9 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004643/0.1704, allocations: 139.8 kB / 499 MB, free: 0.793 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005212/0.1757, allocations: 6.229 MB / 0.4934 GB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004864/0.1762, allocations: 87.11 kB / 0.4935 GB, free: 9.945 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.556e-05/0.1762, allocations: 32.12 kB / 0.4935 GB, free: 9.914 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * 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 (82): * Single equations (assignments): 78 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 8,(1,100.0%) 8,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003111/0.1766, allocations: 225.7 kB / 0.4937 GB, free: 9.684 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001119/0.1767, allocations: 39.53 kB / 0.4938 GB, free: 9.645 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001133/0.1778, allocations: 0.6909 MB / 0.4944 GB, free: 8.938 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.447e-06/0.1778, allocations: 11.94 kB / 0.4945 GB, free: 8.926 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.1778, allocations: 4 kB / 0.4945 GB, free: 8.922 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.1779, allocations: 11.97 kB / 0.4945 GB, free: 8.91 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002301/0.1802, allocations: 1.554 MB / 0.496 GB, free: 7.285 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.1802, allocations: 7.922 kB / 0.496 GB, free: 7.277 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002239/0.1804, allocations: 63.92 kB / 0.4961 GB, free: 7.215 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004758/0.1809, allocations: 215.2 kB / 0.4963 GB, free: 6.992 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.956e-05/0.1809, allocations: 16 kB / 0.4963 GB, free: 6.977 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004652/0.1856, allocations: 6.225 MB / 0.5024 GB, free: 220 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.1856, allocations: 0 / 0.5024 GB, free: 220 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2426/0.4282, allocations: 1.183 MB / 0.5035 GB, free: 46.39 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002463/0.4285, allocations: 128.1 kB / 0.5036 GB, free: 46.29 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.748e-05/0.4286, allocations: 15.3 kB / 0.5037 GB, free: 46.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003343/0.4289, allocations: 19 kB / 0.5037 GB, free: 46.29 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001645/0.4291, allocations: 50.75 kB / 0.5037 GB, free: 46.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.504e-05/0.4291, allocations: 19.94 kB / 0.5037 GB, free: 46.29 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002676/0.4294, allocations: 211.3 kB / 0.5039 GB, free: 46.21 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4294, allocations: 1.219 kB / 0.5039 GB, free: 46.21 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001254/0.4307, allocations: 272 kB / 0.5042 GB, free: 46.21 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (constantSource2.port_p.reference.gamma,constantSource1.port_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 (42): * Single equations (assignments): 38 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 8,(1,100.0%) 8,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002154/0.4328, allocations: 1.755 MB / 0.5059 GB, free: 45.29 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002038/0.4349, allocations: 1.081 MB / 0.507 GB, free: 44.83 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/0.4349, allocations: 0.9688 kB / 0.507 GB, free: 44.83 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001117/0.436, allocations: 0.7822 MB / 0.5077 GB, free: 44.37 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000901/0.4369, allocations: 50.31 kB / 0.5078 GB, free: 44.37 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004924/0.4419, allocations: 3.262 MB / 0.511 GB, free: 42.87 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004335/0.4423, allocations: 0.9096 MB / 0.5119 GB, free: 42.16 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003113/0.4427, allocations: 68.31 kB / 0.5119 GB, free: 42.14 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002413/0.4429, allocations: 228.8 kB / 0.5121 GB, free: 41.96 MB / 382.1 MB Notification: Performance of SimCode: time 1.233e-06/0.4429, allocations: 0 / 0.5121 GB, free: 41.96 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02513/0.468, allocations: 10.7 MB / 0.5226 GB, free: 39.29 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001402/0.4682, allocations: 237.9 kB / 0.5228 GB, free: 39.05 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.087/2.555, allocations: 0 / 0.5228 GB, free: 39.05 MB / 382.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_NoPhysicalTestLeakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Magnetic_QuasiStatic_FluxTubes_NoPhysicalTestLeakage.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Magnetic.QuasiStatic.FluxTubes.NoPhysicalTestLeakage_res.mat does not exist to compare? outputFormat=mat