Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001629/0.001629, allocations: 197.6 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 225.6 MB / 234.8 MB, free: 3.168 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009212/0.0009215, allocations: 99.3 kB / 286.7 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.92e-05/1.921e-05, allocations: 4 kB / 343.8 MB, free: 8.105 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1106, allocations: 51.47 MB / 395.3 MB, free: 4.598 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3862/0.4969, allocations: 88.37 MB / 483.6 MB, free: 4.523 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002954/0.4972, allocations: 92.12 kB / 483.7 MB, free: 4.473 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08459/0.5818, allocations: 37.18 MB / 0.5087 GB, free: 4.238 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.5819, allocations: 4 kB / 0.5087 GB, free: 4.234 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.124e-05/0.5819, allocations: 20 kB / 0.5087 GB, free: 4.215 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 328 * Number of variables: 328 Notification: Performance of Generate backend data structure: time 0.005644/0.5875, allocations: 1.487 MB / 0.5102 GB, free: 2.684 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.5876, allocations: 11.97 kB / 0.5102 GB, free: 2.672 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003358/0.591, allocations: 462.2 kB / 0.5106 GB, free: 2.219 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005047/0.5915, allocations: 294.6 kB / 0.5109 GB, free: 1.891 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001158/0.5916, allocations: 44 kB / 0.5109 GB, free: 1.848 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004343/0.5921, allocations: 91.44 kB / 0.511 GB, free: 1.762 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002549/0.5946, allocations: 1.017 MB / 0.512 GB, free: 0.7422 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002341/0.597, allocations: 1.035 MB / 0.513 GB, free: 15.68 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.747e-05/0.5971, allocations: 0 / 0.513 GB, free: 15.68 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001005/0.5972, allocations: 0 / 0.513 GB, free: 15.68 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.712e-05/0.5972, allocations: 32 kB / 0.5131 GB, free: 15.64 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007507/0.6047, allocations: 4.15 MB / 0.5171 GB, free: 11.29 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002341/0.6071, allocations: 2.186 MB / 0.5193 GB, free: 8.871 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007887/0.6079, allocations: 481.3 kB / 0.5197 GB, free: 8.398 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002274/0.6082, allocations: 195.5 kB / 0.5199 GB, free: 8.172 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.757e-05/0.6082, allocations: 43.88 kB / 0.5199 GB, free: 8.121 MB / 394.7 MB Notification: Performance of pre-optimization done (n=122): time 3.297e-06/0.6082, allocations: 0 / 0.5199 GB, free: 8.121 MB / 394.7 MB Notification: Performance of matching and sorting (n=125): time 0.01047/0.6187, allocations: 3.334 MB / 0.5232 GB, free: 4.723 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.774e-05/0.6188, allocations: 90.42 kB / 0.5233 GB, free: 4.617 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004356/0.6192, allocations: 310.1 kB / 0.5236 GB, free: 4.305 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.108e-05/0.6193, allocations: 25.7 kB / 0.5236 GB, free: 4.273 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002905/0.6196, allocations: 450.9 kB / 0.524 GB, free: 3.824 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003191/0.6199, allocations: 411.8 kB / 0.5244 GB, free: 3.418 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.551e-05/0.62, allocations: 0 / 0.5244 GB, free: 3.418 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.6202, allocations: 374.8 kB / 0.5248 GB, free: 3.043 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005724/0.6207, allocations: 324 kB / 0.5251 GB, free: 2.727 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009083/0.6217, allocations: 0.5774 MB / 0.5257 GB, free: 2.043 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002659/0.6243, allocations: 0.7634 MB / 0.5264 GB, free: 1.281 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.245e-05/0.6244, allocations: 4 kB / 0.5264 GB, free: 1.277 MB / 394.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.00392/0.6283, allocations: 1.533 MB / 0.5279 GB, free: 15.73 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.739e-05/0.6283, allocations: 9.406 kB / 0.5279 GB, free: 15.72 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.72e-05/0.6284, allocations: 8 kB / 0.5279 GB, free: 15.71 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005968/0.629, allocations: 182.5 kB / 0.5281 GB, free: 15.53 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001303/0.6303, allocations: 307.6 kB / 0.5284 GB, free: 15.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004163/0.6345, allocations: 3.823 MB / 0.5321 GB, free: 11.18 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001022/0.6355, allocations: 67.91 kB / 0.5322 GB, free: 11.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000171/0.6357, allocations: 59.98 kB / 0.5322 GB, free: 11.06 MB / 410.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 144 * 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%) 12,(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002528/0.636, allocations: 136.6 kB / 0.5324 GB, free: 10.92 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00374/0.6397, allocations: 1.278 MB / 0.5336 GB, free: 9.625 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001454/0.6399, allocations: 67.2 kB / 0.5337 GB, free: 9.559 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00563/0.6455, allocations: 1.451 MB / 0.5351 GB, free: 8.094 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.129e-05/0.6455, allocations: 19.98 kB / 0.5351 GB, free: 8.074 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.606e-05/0.6456, allocations: 7.953 kB / 0.5351 GB, free: 8.066 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.801e-05/0.6456, allocations: 3.984 kB / 0.5351 GB, free: 8.062 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008182/0.6538, allocations: 2.49 MB / 0.5376 GB, free: 5.512 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.37e-05/0.6539, allocations: 7.984 kB / 0.5376 GB, free: 5.504 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001458/0.6553, allocations: 223.7 kB / 0.5378 GB, free: 5.285 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006564/0.656, allocations: 157.6 kB / 0.5379 GB, free: 5.125 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001044/0.6561, allocations: 18.8 kB / 0.538 GB, free: 5.109 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004945/0.6611, allocations: 3.621 MB / 0.5415 GB, free: 1.258 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.384e-06/0.6611, allocations: 4 kB / 0.5415 GB, free: 1.254 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006689/0.6678, allocations: 1.954 MB / 0.5434 GB, free: 15.24 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005801/0.6684, allocations: 228.1 kB / 0.5436 GB, free: 15 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002073/0.6687, allocations: 3.984 kB / 0.5436 GB, free: 14.99 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001083/0.6698, allocations: 52.02 kB / 0.5437 GB, free: 14.94 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002957/0.6701, allocations: 93.17 kB / 0.5438 GB, free: 14.85 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000106/0.6702, allocations: 35.98 kB / 0.5438 GB, free: 14.81 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0004188/0.6706, allocations: 228.6 kB / 0.544 GB, free: 14.59 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.6707, allocations: 4 kB / 0.544 GB, free: 14.59 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001569/0.6722, allocations: 271.9 kB / 0.5443 GB, free: 14.32 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (voltageSensor.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (106): * Single equations (assignments): 104 * 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%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005325/0.6776, allocations: 2.846 MB / 0.5471 GB, free: 11.42 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002356/0.68, allocations: 1.207 MB / 0.5482 GB, free: 10.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.68, allocations: 0 / 0.5482 GB, free: 10.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001265/0.6813, allocations: 0.7497 MB / 0.549 GB, free: 9.434 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005721/0.6818, allocations: 26.83 kB / 0.549 GB, free: 9.41 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00445/0.6863, allocations: 1.436 MB / 0.5504 GB, free: 7.918 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007668/0.6871, allocations: 1.025 MB / 0.5514 GB, free: 6.863 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.000827/0.688, allocations: 146.6 kB / 0.5515 GB, free: 6.715 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005534/0.6885, allocations: 361.5 kB / 0.5519 GB, free: 6.367 MB / 426.7 MB Notification: Performance of SimCode: time 1.092e-06/0.6885, allocations: 0 / 0.5519 GB, free: 6.367 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04879/0.7373, allocations: 15.18 MB / 0.5667 GB, free: 7.285 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002683/0.7377, allocations: 188.1 kB / 0.5669 GB, free: 7.09 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.571/3.308, allocations: 0 / 0.5669 GB, free: 7.09 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat does not exist to compare? outputFormat=mat