Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001197/0.001197, allocations: 93.55 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.001513/0.001513, allocations: 205.5 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.378/1.378, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002456/0.0002457, allocations: 8 kB / 306.7 MB, free: 1.266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1116, allocations: 51.49 MB / 358.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.004966/0.1166, allocations: 4.075 MB / 362.3 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003742/0.1204, allocations: 1.948 MB / 364.2 MB, free: 7.734 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003504/0.1208, allocations: 16 kB / 364.2 MB, free: 7.719 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006169/0.1214, allocations: 234.7 kB / 364.5 MB, free: 7.488 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009108/0.1223, allocations: 374.9 kB / 364.8 MB, free: 7.121 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001779/0.1241, allocations: 0.9936 MB / 365.8 MB, free: 6.129 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008081/0.1249, allocations: 0.5031 MB / 366.3 MB, free: 5.625 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001893/0.1268, allocations: 1.106 MB / 367.4 MB, free: 4.496 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004595/0.1273, allocations: 267 kB / 367.7 MB, free: 4.234 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004075/0.1277, allocations: 362.5 kB / 368.1 MB, free: 3.879 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001133/0.1278, allocations: 36 kB / 368.1 MB, free: 3.844 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009313/0.1288, allocations: 327.5 kB / 368.4 MB, free: 3.523 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001036/0.1289, allocations: 119.6 kB / 368.5 MB, free: 3.406 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001312/0.129, allocations: 153.3 kB / 368.7 MB, free: 3.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009133/0.1299, allocations: 0.8845 MB / 369.6 MB, free: 2.363 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.1299, allocations: 0 / 369.6 MB, free: 2.363 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.13, allocations: 4 kB / 369.6 MB, free: 2.359 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.134e-05/0.13, allocations: 0 / 369.6 MB, free: 2.359 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.004024/0.134, allocations: 1.361 MB / 370.9 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.1341, allocations: 8.031 kB / 370.9 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001478/0.1342, allocations: 135.1 kB / 371.1 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002429/0.1367, allocations: 390.8 kB / 371.5 MB, free: 424 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002548/0.1369, allocations: 258 kB / 371.7 MB, free: 124 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.237e-05/0.137, allocations: 66 kB / 371.8 MB, free: 60 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.2145/0.3515, allocations: 75.83 kB / 371.8 MB, free: 18.64 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002433/0.354, allocations: 0.8734 MB / 372.7 MB, free: 18.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.289e-05/0.354, allocations: 2.359 kB / 372.7 MB, free: 18.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.721e-05/0.3541, allocations: 32.56 kB / 372.8 MB, free: 18.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.105e-05/0.3541, allocations: 21.62 kB / 372.8 MB, free: 18.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002049/0.3562, allocations: 0.8287 MB / 373.6 MB, free: 18.56 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004541/0.3607, allocations: 3.058 MB / 376.7 MB, free: 16.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001187/0.3619, allocations: 1.007 MB / 377.7 MB, free: 16.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001356/0.3621, allocations: 175.9 kB / 377.8 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.58e-05/0.3621, allocations: 38.44 kB / 377.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 2.445e-06/0.3622, allocations: 0 / 377.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.008685/0.3708, allocations: 2.693 MB / 380.6 MB, free: 14.71 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.86e-05/0.3709, allocations: 88.34 kB / 380.7 MB, free: 14.61 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004543/0.3714, allocations: 309.9 kB / 381 MB, free: 14.44 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.344e-05/0.3715, allocations: 35.48 kB / 381 MB, free: 14.4 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002605/0.3717, allocations: 365.8 kB / 381.3 MB, free: 14.11 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001885/0.3719, allocations: 210.8 kB / 381.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.751e-05/0.372, allocations: 14.69 kB / 381.6 MB, free: 13.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.3721, allocations: 349.4 kB / 381.9 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008721/0.373, allocations: 298.4 kB / 382.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001093/0.3741, allocations: 0.5265 MB / 382.7 MB, free: 13.12 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009815/0.3751, allocations: 360.7 kB / 383.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.981e-06/0.3751, allocations: 2.688 kB / 383.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002335/0.3774, allocations: 0.9456 MB / 384 MB, free: 12.62 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.924e-05/0.3775, allocations: 8.078 kB / 384 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.516e-05/0.3775, allocations: 12 kB / 384 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002738/0.3778, allocations: 70.58 kB / 384.1 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009545/0.3787, allocations: 218 kB / 384.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001519/0.3803, allocations: 2.683 MB / 387 MB, free: 9.883 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007279/0.381, allocations: 73.69 kB / 387.1 MB, free: 9.867 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.894e-05/0.3811, allocations: 40.59 kB / 387.1 MB, free: 9.859 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.0003177/0.3814, allocations: 214.8 kB / 387.3 MB, free: 9.676 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.789e-05/0.3815, allocations: 43 kB / 387.4 MB, free: 9.652 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00216/0.3837, allocations: 0.7926 MB / 388.2 MB, free: 9.34 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.3837, allocations: 7.125 kB / 388.2 MB, free: 9.34 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.3837, allocations: 4 kB / 388.2 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.029e-05/0.3837, allocations: 5.172 kB / 388.2 MB, free: 9.336 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002898/0.3866, allocations: 1.47 MB / 389.7 MB, free: 8.609 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.3866, allocations: 6.188 kB / 389.7 MB, free: 8.609 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007217/0.3873, allocations: 148.3 kB / 389.8 MB, free: 8.594 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001906/0.3875, allocations: 61.47 kB / 389.9 MB, free: 8.566 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.369e-05/0.3876, allocations: 17.27 kB / 389.9 MB, free: 8.559 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001472/0.3891, allocations: 2.664 MB / 392.5 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.3891, allocations: 3.25 kB / 392.5 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0028/0.3919, allocations: 1.153 MB / 393.7 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002061/0.3921, allocations: 163 kB / 393.9 MB, free: 5.246 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.883e-05/0.3922, allocations: 10.56 kB / 393.9 MB, free: 5.238 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005268/0.3927, allocations: 61.95 kB / 393.9 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001135/0.3929, allocations: 50.38 kB / 394 MB, free: 5.215 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.257e-05/0.3929, allocations: 19.61 kB / 394 MB, free: 5.211 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000226/0.3931, allocations: 216.8 kB / 394.2 MB, free: 5.094 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3931, allocations: 4 kB / 394.2 MB, free: 5.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008903/0.394, allocations: 179.6 kB / 394.4 MB, free: 5.062 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.002997/0.397, allocations: 1.76 MB / 396.2 MB, free: 4.004 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002167/0.3992, allocations: 0.9545 MB / 397.1 MB, free: 3.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3992, allocations: 0 / 397.1 MB, free: 3.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.4003, allocations: 0.5798 MB / 397.7 MB, free: 3.203 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003404/0.4006, allocations: 32.97 kB / 397.7 MB, free: 3.188 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008393/0.409, allocations: 8.338 MB / 406.1 MB, free: 11.99 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005204/0.4096, allocations: 0.8947 MB / 406.9 MB, free: 11.21 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000501/0.4101, allocations: 99.97 kB / 407 MB, free: 11.14 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003127/0.4104, allocations: 231 kB / 407.3 MB, free: 10.95 MB / 318.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4105, allocations: 0 / 407.3 MB, free: 10.95 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02349/0.4339, allocations: 10.39 MB / 417.7 MB, free: 1.742 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002013/0.4342, allocations: 270.1 kB / 417.9 MB, free: 1.395 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.02/2.454, allocations: 0 / 417.9 MB, free: 1.395 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat does not exist to compare? outputFormat=mat