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) 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.LinearInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",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.0009629/0.0009631, allocations: 88.59 kB / 16.31 MB, free: 6.453 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.001016/0.001016, allocations: 183.1 kB / 17.21 MB, free: 6.324 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.352/1.352, allocations: 223.3 MB / 241.2 MB, free: 5.438 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002922/0.0002924, allocations: 6 kB / 300.9 MB, free: 6.062 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1172, allocations: 50.43 MB / 351.3 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor): time 0.006536/0.1238, allocations: 5.582 MB / 356.9 MB, free: 6.016 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00476/0.1286, allocations: 2.275 MB / 359.2 MB, free: 3.734 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006026/0.1292, allocations: 23.94 kB / 359.2 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008341/0.13, allocations: 266.6 kB / 359.5 MB, free: 3.449 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001639/0.1317, allocations: 0.5636 MB / 360 MB, free: 2.883 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001784/0.1335, allocations: 0.8932 MB / 360.9 MB, free: 1.992 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001063/0.1346, allocations: 0.9733 MB / 361.9 MB, free: 1.012 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001837/0.1364, allocations: 1.181 MB / 363.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004257/0.1368, allocations: 354.6 kB / 363.4 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000531/0.1374, allocations: 470 kB / 363.9 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.357e-05/0.1375, allocations: 44 kB / 363.9 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007146/0.1382, allocations: 343.6 kB / 364.3 MB, free: 14.6 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001439/0.1384, allocations: 163.3 kB / 364.4 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001771/0.1385, allocations: 197.2 kB / 364.6 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001025/0.1396, allocations: 1.118 MB / 365.7 MB, free: 13.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1396, allocations: 0 / 365.7 MB, free: 13.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.387e-06/0.1396, allocations: 4 kB / 365.8 MB, free: 13.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.498e-06/0.1396, allocations: 0 / 365.8 MB, free: 13.12 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: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.003618/0.1432, allocations: 1.452 MB / 367.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.1433, allocations: 8.031 kB / 367.2 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002578/0.1436, allocations: 175.2 kB / 367.4 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00285/0.1464, allocations: 486.3 kB / 367.9 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006309/0.1471, allocations: 481.3 kB / 368.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.808e-05/0.1471, allocations: 82.23 kB / 368.4 MB, free: 10.35 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001388/0.1473, allocations: 108 kB / 368.5 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001751/0.149, allocations: 0.9824 MB / 369.5 MB, free: 9.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.906e-05/0.1491, allocations: 0 / 369.5 MB, free: 9.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.363e-05/0.1492, allocations: 51.94 kB / 369.5 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.465e-05/0.1492, allocations: 24 kB / 369.6 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001716/0.1509, allocations: 0.9653 MB / 370.5 MB, free: 8.184 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00577/0.1567, allocations: 3.718 MB / 374.3 MB, free: 4.254 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001935/0.1587, allocations: 1.549 MB / 375.8 MB, free: 2.535 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007465/0.1594, allocations: 436.4 kB / 376.2 MB, free: 2.105 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001315/0.1596, allocations: 98.16 kB / 376.3 MB, free: 1.992 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000859/0.1605, allocations: 474.5 kB / 376.8 MB, free: 1.508 MB / 302.1 MB Notification: Performance of pre-optimization done (n=96): time 2.144e-06/0.1605, allocations: 0 / 376.8 MB, free: 1.508 MB / 302.1 MB Notification: Performance of matching and sorting (n=125): time 0.008574/0.169, allocations: 4.025 MB / 380.8 MB, free: 13.36 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/0.1692, allocations: 145.5 kB / 381 MB, free: 13.19 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005226/0.1697, allocations: 397.4 kB / 381.3 MB, free: 12.8 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.291e-05/0.1698, allocations: 49.64 kB / 381.4 MB, free: 12.74 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003503/0.1702, allocations: 415.8 kB / 381.8 MB, free: 12.33 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003219/0.1705, allocations: 425.8 kB / 382.2 MB, free: 11.91 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.502e-05/0.1706, allocations: 28 kB / 382.2 MB, free: 11.88 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002354/0.1708, allocations: 370.8 kB / 382.6 MB, free: 11.51 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007128/0.1715, allocations: 354.4 kB / 382.9 MB, free: 11.16 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008016/0.1723, allocations: 0.5435 MB / 383.5 MB, free: 10.55 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008022/0.1731, allocations: 426.8 kB / 383.9 MB, free: 10.14 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.1732, allocations: 0 / 383.9 MB, free: 10.14 MB / 318.1 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.002491/0.1757, allocations: 1.386 MB / 385.3 MB, free: 8.734 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.651e-05/0.1757, allocations: 12 kB / 385.3 MB, free: 8.723 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.226e-05/0.1757, allocations: 4 kB / 385.3 MB, free: 8.719 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008765/0.1766, allocations: 339.2 kB / 385.6 MB, free: 8.375 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000795/0.1774, allocations: 211.7 kB / 385.8 MB, free: 8.168 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007162/0.1846, allocations: 7.719 MB / 393.6 MB, free: 15.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007638/0.1854, allocations: 51.97 kB / 393.6 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.417e-05/0.1855, allocations: 47.98 kB / 393.7 MB, free: 15.83 MB / 334.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,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * 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%) 4,(1,100.0%) 2,(1,100.0%) 19,(1,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004948/0.186, allocations: 269.6 kB / 393.9 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.1861, allocations: 71.16 kB / 394 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002378/0.1885, allocations: 1.297 MB / 395.3 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/0.1885, allocations: 19.94 kB / 395.3 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.797e-06/0.1885, allocations: 8 kB / 395.3 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.666e-05/0.1885, allocations: 11.97 kB / 395.3 MB, free: 14.13 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003835/0.1924, allocations: 2.535 MB / 397.9 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/0.1924, allocations: 4 kB / 397.9 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006352/0.193, allocations: 151.8 kB / 398 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007141/0.1937, allocations: 325.1 kB / 398.3 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.09e-05/0.1938, allocations: 24 kB / 398.4 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006835/0.2007, allocations: 7.433 MB / 405.8 MB, free: 3.031 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.2007, allocations: 0 / 405.8 MB, free: 3.031 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003076/0.2038, allocations: 1.819 MB / 407.6 MB, free: 1.164 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003258/0.2041, allocations: 224.2 kB / 407.8 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.235e-05/0.2042, allocations: 27.98 kB / 407.9 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004481/0.2047, allocations: 39.98 kB / 407.9 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001721/0.2048, allocations: 96.86 kB / 408 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.953e-05/0.2049, allocations: 32 kB / 408 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002846/0.2052, allocations: 271.1 kB / 408.3 MB, free: 480 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2052, allocations: 0 / 408.3 MB, free: 480 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.001163/0.2064, allocations: 312 kB / 408.6 MB, free: 168 kB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,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 (85): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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%) 19,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003341/0.2097, allocations: 2.438 MB / 411 MB, free: 13.67 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002597/0.2123, allocations: 1.606 MB / 412.6 MB, free: 12.01 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.2124, allocations: 256 / 412.6 MB, free: 12.01 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00155/0.2139, allocations: 1.15 MB / 413.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005886/0.2145, allocations: 79.73 kB / 413.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008165/0.2227, allocations: 5.142 MB / 419 MB, free: 5.453 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006918/0.2234, allocations: 1.024 MB / 420 MB, free: 4.398 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005206/0.2239, allocations: 106.1 kB / 420.1 MB, free: 4.293 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004442/0.2244, allocations: 339.3 kB / 420.5 MB, free: 3.961 MB / 350.1 MB Notification: Performance of SimCode: time 1.373e-06/0.2244, allocations: 4 kB / 420.5 MB, free: 3.957 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2287/0.4532, allocations: 16.66 MB / 437.1 MB, free: 60.56 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002003/0.4534, allocations: 231.9 kB / 437.4 MB, free: 60.31 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.359/2.812, allocations: 4 kB / 437.4 MB, free: 60.31 MB / 350.1 MB (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/linux/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 --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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat does not exist to compare? outputFormat=mat