Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.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.SaturatedInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001097/0.001097, allocations: 97.7 kB / 17 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001069/0.001068, allocations: 198.5 kB / 17.91 MB, free: 5.902 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.4 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002502/0.0002503, allocations: 8 kB / 306.8 MB, free: 1.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1083, allocations: 51.5 MB / 358.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.003071/0.1115, allocations: 2.346 MB / 360.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001431/0.1129, allocations: 0.8262 MB / 361.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000127/0.1131, allocations: 4 kB / 361.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002017/0.1133, allocations: 51.61 kB / 361.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002543/0.1135, allocations: 83.38 kB / 361.6 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002565/0.1138, allocations: 75.92 kB / 361.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003219/0.1141, allocations: 322.7 kB / 362 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001764/0.1143, allocations: 85.58 kB / 362.1 MB, free: 9.926 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002082/0.1145, allocations: 123.5 kB / 362.2 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000188/0.1147, allocations: 127.4 kB / 362.3 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.352e-05/0.1148, allocations: 16 kB / 362.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.947e-05/0.1148, allocations: 16 kB / 362.4 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.809e-05/0.1149, allocations: 51.77 kB / 362.4 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.427e-05/0.115, allocations: 81.52 kB / 362.5 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002634/0.1152, allocations: 267.5 kB / 362.8 MB, free: 9.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.1152, allocations: 0 / 362.8 MB, free: 9.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.1153, allocations: 4 kB / 362.8 MB, free: 9.246 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.1153, allocations: 4 kB / 362.8 MB, free: 9.242 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0009235/0.1162, allocations: 0.5651 MB / 363.3 MB, free: 8.629 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.1162, allocations: 8.031 kB / 363.3 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.666e-05/0.1163, allocations: 58.55 kB / 363.4 MB, free: 8.555 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001633/0.1165, allocations: 47.61 kB / 363.4 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002867/0.1168, allocations: 251.5 kB / 363.7 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.494e-05/0.1168, allocations: 24.5 kB / 363.7 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.311e-05/0.1169, allocations: 31.89 kB / 363.8 MB, free: 8.164 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004595/0.1173, allocations: 256.8 kB / 364 MB, free: 7.91 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.1173, allocations: 0 / 364 MB, free: 7.91 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.521e-05/0.1174, allocations: 12 kB / 364 MB, free: 7.898 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.987e-06/0.1174, allocations: 8 kB / 364 MB, free: 7.891 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004215/0.1178, allocations: 210.1 kB / 364.2 MB, free: 7.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001462/0.1193, allocations: 1.021 MB / 365.2 MB, free: 6.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003959/0.1197, allocations: 206.5 kB / 365.4 MB, free: 6.359 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002269/0.1199, allocations: 113.2 kB / 365.6 MB, free: 6.246 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.044e-05/0.12, allocations: 7.859 kB / 365.6 MB, free: 6.238 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.164e-05/0.12, allocations: 38.59 kB / 365.6 MB, free: 6.191 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.613e-06/0.12, allocations: 4 kB / 365.6 MB, free: 6.188 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.004555/0.1246, allocations: 1.54 MB / 367.1 MB, free: 4.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.796e-05/0.1246, allocations: 63.34 kB / 367.2 MB, free: 4.496 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002244/0.1249, allocations: 229 kB / 367.4 MB, free: 4.262 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.895e-05/0.1249, allocations: 33.7 kB / 367.5 MB, free: 4.223 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.125, allocations: 184.1 kB / 367.6 MB, free: 4.039 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/0.1252, allocations: 118.2 kB / 367.8 MB, free: 3.922 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.098e-05/0.1252, allocations: 8 kB / 367.8 MB, free: 3.914 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.1253, allocations: 342.7 kB / 368.1 MB, free: 3.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002285/0.1256, allocations: 112.7 kB / 368.2 MB, free: 3.457 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002577/0.1258, allocations: 157.5 kB / 368.4 MB, free: 3.289 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002582/0.1261, allocations: 131.8 kB / 368.5 MB, free: 3.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.1261, allocations: 0 / 368.5 MB, free: 3.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001431/0.1275, allocations: 0.5334 MB / 369 MB, free: 2.613 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.1276, allocations: 4 kB / 369 MB, free: 2.609 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.1276, allocations: 4 kB / 369 MB, free: 2.605 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001265/0.1289, allocations: 257.5 kB / 369.3 MB, free: 2.348 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002588/0.1291, allocations: 59.91 kB / 369.3 MB, free: 2.289 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2109/0.34, allocations: 3.737 MB / 373.1 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003008/0.3404, allocations: 15.08 kB / 373.1 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.943e-05/0.3404, allocations: 13.5 kB / 373.1 MB, free: 17.79 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (29): * Single equations (assignments): 27 * 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: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001939/0.3406, allocations: 155.8 kB / 373.3 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.494e-05/0.3407, allocations: 26.39 kB / 373.3 MB, free: 17.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001002/0.3408, allocations: 41.64 kB / 373.3 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.756e-06/0.3408, allocations: 4.328 kB / 373.3 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.229e-05/0.3408, allocations: 1.312 kB / 373.3 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.173e-06/0.3408, allocations: 6.812 kB / 373.3 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002257/0.3431, allocations: 0.9877 MB / 374.3 MB, free: 17.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.3431, allocations: 2.062 kB / 374.3 MB, free: 17.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002155/0.3433, allocations: 41.23 kB / 374.4 MB, free: 17.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001285/0.3446, allocations: 257.5 kB / 374.6 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.157e-05/0.3447, allocations: 7.781 kB / 374.6 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003954/0.3486, allocations: 3.733 MB / 378.4 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.3487, allocations: 0.5625 kB / 378.4 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001719/0.3504, allocations: 0.7346 MB / 379.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.137e-05/0.3505, allocations: 103 kB / 379.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.441e-05/0.3505, allocations: 11.42 kB / 379.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002133/0.3507, allocations: 19.89 kB / 379.2 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.373e-05/0.3508, allocations: 28.64 kB / 379.3 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.388e-05/0.3508, allocations: 12.55 kB / 379.3 MB, free: 13.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001493/0.351, allocations: 163.4 kB / 379.4 MB, free: 13.81 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.351, allocations: 0 / 379.4 MB, free: 13.81 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006064/0.3516, allocations: 105.5 kB / 379.5 MB, free: 13.8 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (coil.i) * 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 (19): * Single equations (assignments): 17 * 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: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.001858/0.3535, allocations: 1.28 MB / 380.8 MB, free: 12.88 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009276/0.3544, allocations: 0.562 MB / 381.4 MB, free: 12.53 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.3544, allocations: 0 / 381.4 MB, free: 12.53 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005517/0.355, allocations: 434.5 kB / 381.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003328/0.3553, allocations: 36.08 kB / 381.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003707/0.3591, allocations: 2.029 MB / 383.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002645/0.3593, allocations: 0.7826 MB / 384.6 MB, free: 10.37 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001133/0.3595, allocations: 21.97 kB / 384.7 MB, free: 10.37 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001251/0.3596, allocations: 95.52 kB / 384.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3596, allocations: 0 / 384.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02162/0.3812, allocations: 7.814 MB / 392.6 MB, free: 8.141 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001429/0.3814, allocations: 235.7 kB / 392.8 MB, free: 7.906 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.113/2.494, allocations: 0 / 392.8 MB, free: 7.906 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.mat does not exist to compare? outputFormat=mat