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.001163/0.001163, allocations: 94.41 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.00134/0.001341, 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.288/1.288, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002729/0.0002729, allocations: 8 kB / 306.7 MB, free: 1.254 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.117, allocations: 51.49 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.004733/0.1217, allocations: 4.044 MB / 362.3 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003335/0.1251, allocations: 1.94 MB / 364.2 MB, free: 7.758 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002174/0.1253, allocations: 20 kB / 364.2 MB, free: 7.738 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000518/0.1259, allocations: 234.7 kB / 364.4 MB, free: 7.508 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008293/0.1267, allocations: 362.9 kB / 364.8 MB, free: 7.152 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001849/0.1286, allocations: 0.9889 MB / 365.8 MB, free: 6.168 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007121/0.1293, allocations: 0.5069 MB / 366.3 MB, free: 5.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001867/0.1312, allocations: 1.098 MB / 367.4 MB, free: 4.539 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003842/0.1316, allocations: 275 kB / 367.7 MB, free: 4.27 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003687/0.1319, allocations: 350.6 kB / 368 MB, free: 3.926 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.735e-05/0.132, allocations: 36 kB / 368 MB, free: 3.891 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000713/0.1327, allocations: 327.5 kB / 368.4 MB, free: 3.57 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.68e-05/0.1328, allocations: 115.6 kB / 368.5 MB, free: 3.457 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000121/0.133, allocations: 149.3 kB / 368.6 MB, free: 3.305 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000866/0.1338, allocations: 0.8807 MB / 369.5 MB, free: 2.422 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.1338, allocations: 0 / 369.5 MB, free: 2.422 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1339, allocations: 3.938 kB / 369.5 MB, free: 2.418 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.857e-06/0.1339, allocations: 4 kB / 369.5 MB, free: 2.414 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.004105/0.138, allocations: 1.338 MB / 370.8 MB, free: 1.023 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.239e-05/0.138, allocations: 12.03 kB / 370.9 MB, free: 1.012 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001911/0.1382, allocations: 131.2 kB / 371 MB, free: 0.875 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002615/0.1409, allocations: 394.6 kB / 371.4 MB, free: 500 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005442/0.1414, allocations: 258.7 kB / 371.6 MB, free: 196 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.69e-05/0.1415, allocations: 66 kB / 371.7 MB, free: 132 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000227/0.1418, allocations: 80 kB / 371.8 MB, free: 52 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2207/0.3625, allocations: 0.8686 MB / 372.6 MB, free: 18.56 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.428e-05/0.3626, allocations: 1.391 kB / 372.6 MB, free: 18.56 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.976e-05/0.3627, allocations: 32.88 kB / 372.7 MB, free: 18.56 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-05/0.3627, allocations: 20.75 kB / 372.7 MB, free: 18.56 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002135/0.3649, allocations: 0.8247 MB / 373.5 MB, free: 18.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004835/0.3697, allocations: 3.052 MB / 376.6 MB, free: 16.86 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001136/0.3709, allocations: 1.008 MB / 377.6 MB, free: 16.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000123/0.371, allocations: 175 kB / 377.7 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.214e-05/0.371, allocations: 37.88 kB / 377.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 1.984e-06/0.371, allocations: 1.375 kB / 377.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.008194/0.3792, allocations: 2.686 MB / 380.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.059e-05/0.3793, allocations: 87.39 kB / 380.6 MB, free: 14.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003143/0.3796, allocations: 310.5 kB / 380.9 MB, free: 14.46 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.858e-05/0.3797, allocations: 36.45 kB / 380.9 MB, free: 14.42 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001775/0.3799, allocations: 361 kB / 381.2 MB, free: 14.13 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000137/0.38, allocations: 211.4 kB / 381.4 MB, free: 13.97 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.46e-05/0.38, allocations: 14.72 kB / 381.5 MB, free: 13.96 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.763e-05/0.3801, allocations: 353.1 kB / 381.8 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000813/0.381, allocations: 296.5 kB / 382.1 MB, free: 13.54 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000896/0.3819, allocations: 0.5224 MB / 382.6 MB, free: 13.15 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008515/0.3827, allocations: 358.3 kB / 383 MB, free: 13.01 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/0.3827, allocations: 2.281 kB / 383 MB, free: 13.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002211/0.3849, allocations: 0.9437 MB / 383.9 MB, free: 12.65 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.691e-05/0.385, allocations: 12.16 kB / 383.9 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.424e-05/0.385, allocations: 8.219 kB / 383.9 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002452/0.3853, allocations: 69.44 kB / 384 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009084/0.3862, allocations: 216.6 kB / 384.2 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00153/0.3877, allocations: 2.672 MB / 386.9 MB, free: 9.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007416/0.3885, allocations: 81.28 kB / 387 MB, free: 9.891 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.759e-05/0.3886, allocations: 39.81 kB / 387 MB, free: 9.883 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.000327/0.3889, allocations: 218.8 kB / 387.2 MB, free: 9.695 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.642e-05/0.389, allocations: 39.12 kB / 387.3 MB, free: 9.676 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002099/0.3911, allocations: 0.7881 MB / 388 MB, free: 9.371 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.684e-06/0.3911, allocations: 9.781 kB / 388.1 MB, free: 9.367 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.3911, allocations: 1.312 kB / 388.1 MB, free: 9.367 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.125e-05/0.3911, allocations: 4.844 kB / 388.1 MB, free: 9.367 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002938/0.3941, allocations: 1.465 MB / 389.5 MB, free: 8.641 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.3941, allocations: 2.078 kB / 389.5 MB, free: 8.641 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000695/0.3948, allocations: 149.5 kB / 389.7 MB, free: 8.625 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001851/0.395, allocations: 61.55 kB / 389.7 MB, free: 8.594 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.042e-05/0.395, allocations: 17.88 kB / 389.8 MB, free: 8.586 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001329/0.3964, allocations: 2.665 MB / 392.4 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3964, allocations: 0 / 392.4 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002743/0.3991, allocations: 1.15 MB / 393.6 MB, free: 5.422 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000216/0.3994, allocations: 165.6 kB / 393.7 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.534e-05/0.3994, allocations: 11.09 kB / 393.7 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005136/0.4, allocations: 65.19 kB / 393.8 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/0.4001, allocations: 43.84 kB / 393.8 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.82e-05/0.4001, allocations: 19.66 kB / 393.9 MB, free: 5.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002174/0.4004, allocations: 207.6 kB / 394.1 MB, free: 5.129 MB / 302.1 MB Notification: Performance of sort global known variables: time 3e-07/0.4004, allocations: 5.156 kB / 394.1 MB, free: 5.125 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008877/0.4013, allocations: 175.8 kB / 394.2 MB, free: 5.098 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.003244/0.4045, allocations: 1.758 MB / 396 MB, free: 4.047 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002837/0.4074, allocations: 0.953 MB / 397 MB, free: 3.609 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.4074, allocations: 0 / 397 MB, free: 3.609 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001241/0.4086, allocations: 0.5788 MB / 397.5 MB, free: 3.254 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004376/0.4091, allocations: 37.23 kB / 397.6 MB, free: 3.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008264/0.4174, allocations: 8.29 MB / 405.9 MB, free: 12.07 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005061/0.4179, allocations: 0.8974 MB / 406.8 MB, free: 11.28 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004911/0.4184, allocations: 90.72 kB / 406.8 MB, free: 11.23 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003279/0.4187, allocations: 223.7 kB / 407.1 MB, free: 11.04 MB / 318.1 MB Notification: Performance of SimCode: time 1.052e-06/0.4187, allocations: 4 kB / 407.1 MB, free: 11.04 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02474/0.4435, allocations: 10.27 MB / 417.3 MB, free: 2.008 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001814/0.4437, allocations: 243.1 kB / 417.6 MB, free: 1.766 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.06/2.504, allocations: 0 / 417.6 MB, free: 1.766 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