Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.QuadraticCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009627/0.0009626, allocations: 96.53 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00152/0.00152, allocations: 201.2 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003185/0.0003186, allocations: 4 kB / 306.7 MB, free: 1.246 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1393/0.1396, allocations: 51.5 MB / 358.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.004711/0.1444, allocations: 2.845 MB / 361 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002036/0.1465, allocations: 0.9354 MB / 362 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002292/0.1468, allocations: 11.94 kB / 362 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002128/0.147, allocations: 63.52 kB / 362.1 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003896/0.1474, allocations: 155.5 kB / 362.2 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000322/0.1477, allocations: 123.8 kB / 362.3 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004694/0.1482, allocations: 415.6 kB / 362.7 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000287/0.1485, allocations: 154.2 kB / 362.9 MB, free: 9.031 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002397/0.1487, allocations: 195.2 kB / 363.1 MB, free: 8.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000274/0.149, allocations: 238.9 kB / 363.3 MB, free: 8.605 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.854e-05/0.1491, allocations: 28 kB / 363.3 MB, free: 8.578 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.298e-05/0.1491, allocations: 28 kB / 363.4 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.069e-05/0.1492, allocations: 91.59 kB / 363.5 MB, free: 8.461 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001033/0.1493, allocations: 125.4 kB / 363.6 MB, free: 8.332 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005275/0.1499, allocations: 478.8 kB / 364 MB, free: 7.863 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.1499, allocations: 0 / 364 MB, free: 7.863 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.397e-06/0.1499, allocations: 3.984 kB / 364 MB, free: 7.859 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.052e-05/0.1499, allocations: 0 / 364 MB, free: 7.859 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001429/0.1513, allocations: 0.7912 MB / 364.8 MB, free: 7.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/0.1514, allocations: 8.031 kB / 364.8 MB, free: 7.012 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001017/0.1515, allocations: 90.52 kB / 364.9 MB, free: 6.914 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.556e-05/0.1516, allocations: 63.25 kB / 365 MB, free: 6.852 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004487/0.1521, allocations: 338.6 kB / 365.3 MB, free: 6.484 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.827e-05/0.1521, allocations: 37.31 kB / 365.4 MB, free: 6.449 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.12e-05/0.1522, allocations: 51.95 kB / 365.4 MB, free: 6.398 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007923/0.153, allocations: 442.4 kB / 365.8 MB, free: 5.961 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.153, allocations: 0 / 365.8 MB, free: 5.961 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.019e-05/0.1531, allocations: 20 kB / 365.9 MB, free: 5.941 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.237e-05/0.1531, allocations: 12 kB / 365.9 MB, free: 5.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008372/0.1539, allocations: 409 kB / 366.3 MB, free: 5.527 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002565/0.1565, allocations: 1.601 MB / 367.9 MB, free: 3.816 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007852/0.1573, allocations: 405.4 kB / 368.3 MB, free: 3.395 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.673e-05/0.1573, allocations: 20.25 kB / 368.3 MB, free: 3.375 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.274e-05/0.1574, allocations: 42.81 kB / 368.3 MB, free: 3.324 MB / 302.1 MB Notification: Performance of pre-optimization done (n=39): time 1.794e-06/0.1574, allocations: 0 / 368.3 MB, free: 3.324 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.003443/0.1608, allocations: 1.397 MB / 369.7 MB, free: 1.898 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.134e-05/0.1609, allocations: 55.97 kB / 369.8 MB, free: 1.832 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004652/0.1614, allocations: 409.5 kB / 370.2 MB, free: 1.422 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.307e-05/0.1614, allocations: 33.7 kB / 370.2 MB, free: 1.383 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002237/0.1616, allocations: 307.8 kB / 370.5 MB, free: 1.078 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001276/0.1618, allocations: 185.3 kB / 370.7 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.713e-05/0.1618, allocations: 12 kB / 370.7 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.162, allocations: 362.7 kB / 371.1 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004233/0.1624, allocations: 193.2 kB / 371.3 MB, free: 340 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004926/0.1629, allocations: 298.2 kB / 371.5 MB, free: 0 / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2143/0.3772, allocations: 222.6 kB / 371.8 MB, free: 19.06 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/0.3772, allocations: 0.75 kB / 371.8 MB, free: 19.06 MB / 302.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001737/0.379, allocations: 0.77 MB / 372.5 MB, free: 18.99 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.642e-05/0.379, allocations: 6.5 kB / 372.5 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.379, allocations: 2.969 kB / 372.5 MB, free: 18.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006097/0.3796, allocations: 194.9 kB / 372.7 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005467/0.3802, allocations: 117.1 kB / 372.9 MB, free: 18.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004365/0.3846, allocations: 3.999 MB / 376.9 MB, free: 16.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005136/0.3851, allocations: 45.75 kB / 376.9 MB, free: 16.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.798e-05/0.3852, allocations: 21.88 kB / 376.9 MB, free: 16.16 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (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 {(2,100.0%) 11,(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002663/0.3854, allocations: 178.6 kB / 377.1 MB, free: 16 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.724e-05/0.3856, allocations: 52.27 kB / 377.1 MB, free: 15.97 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001325/0.3857, allocations: 61.83 kB / 377.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.624e-06/0.3857, allocations: 5.5 kB / 377.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.481e-05/0.3857, allocations: 5.062 kB / 377.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.058e-05/0.3858, allocations: 5.969 kB / 377.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002331/0.3881, allocations: 1.315 MB / 378.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.3881, allocations: 7.422 kB / 378.5 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003308/0.3885, allocations: 76.42 kB / 378.6 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000448/0.3889, allocations: 176.3 kB / 378.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.76e-05/0.389, allocations: 11.41 kB / 378.8 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003393/0.3923, allocations: 3.886 MB / 382.7 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.3924, allocations: 1.875 kB / 382.7 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001387/0.3938, allocations: 0.7608 MB / 383.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/0.3939, allocations: 118.2 kB / 383.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.176e-05/0.3939, allocations: 11.47 kB / 383.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002957/0.3942, allocations: 32.39 kB / 383.6 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/0.3944, allocations: 50 kB / 383.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.761e-05/0.3944, allocations: 15.14 kB / 383.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003724/0.3948, allocations: 279.6 kB / 383.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3948, allocations: 0 / 383.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008039/0.3956, allocations: 157.7 kB / 384.1 MB, free: 11.04 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (33): * Single equations (assignments): 31 * 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 {(2,100.0%) 10,(2,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001446/0.3971, allocations: 1.519 MB / 385.6 MB, free: 9.848 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001531/0.3986, allocations: 0.8165 MB / 386.4 MB, free: 9.418 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3986, allocations: 4.062 kB / 386.4 MB, free: 9.414 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000836/0.3995, allocations: 0.5631 MB / 387 MB, free: 9.055 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004317/0.3999, allocations: 40 kB / 387 MB, free: 9.035 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00502/0.4049, allocations: 4.793 MB / 391.8 MB, free: 5.602 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003712/0.4053, allocations: 0.885 MB / 392.7 MB, free: 4.883 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002086/0.4056, allocations: 48.33 kB / 392.8 MB, free: 4.871 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002045/0.4058, allocations: 176.1 kB / 392.9 MB, free: 4.734 MB / 302.1 MB Notification: Performance of SimCode: time 1.513e-06/0.4058, allocations: 1.062 kB / 392.9 MB, free: 4.734 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.021/0.4268, allocations: 8.996 MB / 401.9 MB, free: 1.578 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001383/0.4269, allocations: 223.2 kB / 402.1 MB, free: 1.34 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.133/2.56, allocations: 0 / 402.1 MB, free: 1.34 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat does not exist to compare? outputFormat=mat