Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001087/0.001088, allocations: 98 kB / 17 MB, free: 6.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00158/0.00158, allocations: 193.7 kB / 17.9 MB, free: 5.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002455/0.0002457, allocations: 8 kB / 306.8 MB, free: 1.484 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.1412, allocations: 51.49 MB / 358.3 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.005105/0.1464, allocations: 4.297 MB / 362.6 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003553/0.15, allocations: 1.932 MB / 364.6 MB, free: 7.738 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005359/0.1505, allocations: 16 kB / 364.6 MB, free: 7.723 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009447/0.1515, allocations: 230.9 kB / 364.8 MB, free: 7.496 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001299/0.1528, allocations: 338.2 kB / 365.1 MB, free: 7.164 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002074/0.1549, allocations: 0.9907 MB / 366.1 MB, free: 6.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001038/0.156, allocations: 0.6807 MB / 366.8 MB, free: 5.496 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002035/0.158, allocations: 1.129 MB / 367.9 MB, free: 4.344 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003952/0.1584, allocations: 282.9 kB / 368.2 MB, free: 4.066 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00039/0.1588, allocations: 362.6 kB / 368.6 MB, free: 3.711 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.897e-05/0.1589, allocations: 32 kB / 368.6 MB, free: 3.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007744/0.1597, allocations: 359.6 kB / 368.9 MB, free: 3.328 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001071/0.1598, allocations: 119.5 kB / 369.1 MB, free: 3.211 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001371/0.1599, allocations: 153.3 kB / 369.2 MB, free: 3.055 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009266/0.1608, allocations: 0.8961 MB / 370.1 MB, free: 2.156 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.1609, allocations: 0 / 370.1 MB, free: 2.156 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1609, allocations: 0 / 370.1 MB, free: 2.156 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.168e-06/0.1609, allocations: 0 / 370.1 MB, free: 2.156 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.003951/0.1648, allocations: 1.354 MB / 371.5 MB, free: 0.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.1649, allocations: 8.031 kB / 371.5 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001488/0.165, allocations: 131.2 kB / 371.6 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002415/0.1675, allocations: 394.7 kB / 372 MB, free: 224 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1891/0.3566, allocations: 248.6 kB / 372.2 MB, free: 18.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001706/0.3568, allocations: 61.84 kB / 372.3 MB, free: 18.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003607/0.3572, allocations: 81.81 kB / 372.4 MB, free: 18.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002102/0.3593, allocations: 0.8788 MB / 373.2 MB, free: 18.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.926e-05/0.3593, allocations: 8.766 kB / 373.2 MB, free: 18.67 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.959e-05/0.3594, allocations: 33.16 kB / 373.3 MB, free: 18.67 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.379e-05/0.3594, allocations: 21.45 kB / 373.3 MB, free: 18.67 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002249/0.3617, allocations: 0.8241 MB / 374.1 MB, free: 18.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005097/0.3668, allocations: 3.049 MB / 377.2 MB, free: 16.85 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001135/0.3679, allocations: 1.003 MB / 378.2 MB, free: 16.08 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005297/0.3685, allocations: 254.6 kB / 378.4 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001305/0.3686, allocations: 183.1 kB / 378.6 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.115e-05/0.3687, allocations: 42.25 kB / 378.6 MB, free: 15.74 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 2.534e-06/0.3687, allocations: 0 / 378.6 MB, free: 15.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.007654/0.3763, allocations: 2.684 MB / 381.3 MB, free: 14.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.62e-05/0.3764, allocations: 84.38 kB / 381.4 MB, free: 14.53 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003074/0.3767, allocations: 299.9 kB / 381.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.31e-05/0.3767, allocations: 36.36 kB / 381.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001576/0.3769, allocations: 361 kB / 382.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001203/0.377, allocations: 210.3 kB / 382.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.621e-05/0.3771, allocations: 20.72 kB / 382.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.468e-05/0.3772, allocations: 351.7 kB / 382.7 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007353/0.3779, allocations: 295.1 kB / 382.9 MB, free: 13.44 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008406/0.3788, allocations: 0.5292 MB / 383.5 MB, free: 13.05 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008356/0.3796, allocations: 352.8 kB / 383.8 MB, free: 12.92 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.3796, allocations: 2.812 kB / 383.8 MB, free: 12.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002041/0.3817, allocations: 0.9505 MB / 384.8 MB, free: 12.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.3817, allocations: 12.12 kB / 384.8 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.356e-05/0.3817, allocations: 10.72 kB / 384.8 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002227/0.3819, allocations: 66.48 kB / 384.9 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00086/0.3828, allocations: 217.4 kB / 385.1 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001375/0.3842, allocations: 2.659 MB / 387.7 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006202/0.3848, allocations: 77.69 kB / 387.8 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.336e-05/0.3849, allocations: 40.77 kB / 387.8 MB, free: 9.797 MB / 302.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.0002644/0.3852, allocations: 213.4 kB / 388.1 MB, free: 9.613 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.457e-05/0.3853, allocations: 43.73 kB / 388.1 MB, free: 9.59 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001923/0.3872, allocations: 0.7844 MB / 388.9 MB, free: 9.285 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/0.3872, allocations: 5.875 kB / 388.9 MB, free: 9.285 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.3872, allocations: 6.141 kB / 388.9 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.566e-06/0.3872, allocations: 9.484 kB / 388.9 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002615/0.3899, allocations: 1.469 MB / 390.4 MB, free: 8.547 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.3899, allocations: 0 / 390.4 MB, free: 8.547 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006727/0.3905, allocations: 146.2 kB / 390.5 MB, free: 8.535 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000153/0.3907, allocations: 62.72 kB / 390.6 MB, free: 8.508 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.713e-05/0.3908, allocations: 15.97 kB / 390.6 MB, free: 8.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001256/0.392, allocations: 2.648 MB / 393.2 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.392, allocations: 3.953 kB / 393.2 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002504/0.3945, allocations: 1.151 MB / 394.4 MB, free: 5.336 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001638/0.3947, allocations: 163.9 kB / 394.6 MB, free: 5.195 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.325e-05/0.3948, allocations: 10.97 kB / 394.6 MB, free: 5.188 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004789/0.3953, allocations: 61.12 kB / 394.6 MB, free: 5.176 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/0.3954, allocations: 46.75 kB / 394.7 MB, free: 5.168 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.682e-05/0.3954, allocations: 18.09 kB / 394.7 MB, free: 5.164 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001902/0.3956, allocations: 205.9 kB / 394.9 MB, free: 5.047 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3956, allocations: 0 / 394.9 MB, free: 5.047 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007645/0.3964, allocations: 178.2 kB / 395.1 MB, free: 5.02 MB / 302.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.00268/0.3991, allocations: 1.763 MB / 396.8 MB, free: 3.961 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001977/0.4011, allocations: 0.9574 MB / 397.8 MB, free: 3.457 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.4011, allocations: 4.969 kB / 397.8 MB, free: 3.457 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009239/0.402, allocations: 0.5746 MB / 398.4 MB, free: 3.074 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004013/0.4024, allocations: 57.52 kB / 398.4 MB, free: 3.035 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005567/0.408, allocations: 3.446 MB / 401.9 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000281/0.4083, allocations: 0.8794 MB / 402.7 MB, free: 15.95 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004856/0.4088, allocations: 96.02 kB / 402.8 MB, free: 15.89 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003257/0.4091, allocations: 222.8 kB / 403.1 MB, free: 15.71 MB / 318.1 MB Notification: Performance of SimCode: time 2.365e-06/0.4092, allocations: 0 / 403.1 MB, free: 15.71 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02302/0.4322, allocations: 10.29 MB / 413.3 MB, free: 6.18 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002016/0.4324, allocations: 253.8 kB / 413.6 MB, free: 5.895 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.149/2.581, allocations: 0 / 413.6 MB, free: 5.895 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat does not exist to compare? outputFormat=mat