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/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.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/ModelicaServices trunk/package.mo): time 0.001044/0.001044, allocations: 95.94 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.001226/0.001226, allocations: 200.2 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.294/1.294, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002258/0.000226, allocations: 4 kB / 306.7 MB, free: 1.25 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.117, allocations: 51.49 MB / 358.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.006033/0.1231, allocations: 5.356 MB / 363.6 MB, free: 8.387 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004055/0.1272, allocations: 2.247 MB / 365.8 MB, free: 6.129 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004822/0.1277, allocations: 24 kB / 365.8 MB, free: 6.105 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007194/0.1284, allocations: 274.4 kB / 366.1 MB, free: 5.836 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001187/0.1296, allocations: 0.4944 MB / 366.6 MB, free: 5.344 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002022/0.1316, allocations: 1.07 MB / 367.7 MB, free: 4.277 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001038/0.1327, allocations: 0.7647 MB / 368.4 MB, free: 3.508 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002647/0.1353, allocations: 1.531 MB / 370 MB, free: 1.949 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005867/0.1359, allocations: 394.5 kB / 370.4 MB, free: 1.562 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005954/0.1365, allocations: 0.5019 MB / 370.9 MB, free: 1.059 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.76e-05/0.1366, allocations: 55.94 kB / 370.9 MB, free: 1.004 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009985/0.1376, allocations: 347.5 kB / 371.2 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001707/0.1378, allocations: 183.2 kB / 371.4 MB, free: 496 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002342/0.1381, allocations: 213.1 kB / 371.6 MB, free: 276 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2274/0.3655, allocations: 1.233 MB / 372.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.3656, allocations: 2.375 kB / 372.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.588e-06/0.3656, allocations: 1 kB / 372.9 MB, free: 10.03 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.012e-05/0.3656, allocations: 0 / 372.9 MB, free: 10.03 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: 328 * Number of variables: 328 Notification: Performance of Generate backend data structure: time 0.006472/0.3721, allocations: 1.852 MB / 374.7 MB, free: 9.332 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.937e-05/0.3721, allocations: 10.03 kB / 374.7 MB, free: 9.332 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003113/0.3725, allocations: 185.7 kB / 374.9 MB, free: 9.289 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003639/0.3761, allocations: 0.5149 MB / 375.4 MB, free: 9.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003884/0.3765, allocations: 304.6 kB / 375.7 MB, free: 8.977 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001041/0.3766, allocations: 96.58 kB / 375.8 MB, free: 8.973 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002536/0.3769, allocations: 132.2 kB / 376 MB, free: 8.969 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002633/0.3795, allocations: 1.293 MB / 377.2 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.552e-05/0.3796, allocations: 2.125 kB / 377.2 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001101/0.3797, allocations: 55.69 kB / 377.3 MB, free: 8.855 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.855e-05/0.3797, allocations: 31 kB / 377.3 MB, free: 8.855 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002577/0.3823, allocations: 1.215 MB / 378.5 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006953/0.3893, allocations: 4.329 MB / 382.9 MB, free: 7.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002342/0.3916, allocations: 2.448 MB / 385.3 MB, free: 5.883 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000155/0.3918, allocations: 188.4 kB / 385.5 MB, free: 5.695 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.167e-05/0.3919, allocations: 47.09 kB / 385.6 MB, free: 5.656 MB / 302.1 MB Notification: Performance of pre-optimization done (n=122): time 2.615e-06/0.3919, allocations: 0 / 385.6 MB, free: 5.656 MB / 302.1 MB Notification: Performance of matching and sorting (n=125): time 0.01426/0.4061, allocations: 4.042 MB / 389.6 MB, free: 4.859 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.988e-05/0.4062, allocations: 90.73 kB / 389.7 MB, free: 4.766 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006547/0.4069, allocations: 390.4 kB / 390.1 MB, free: 4.641 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000102/0.407, allocations: 46.95 kB / 390.1 MB, free: 4.609 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003413/0.4073, allocations: 450.3 kB / 390.6 MB, free: 4.316 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005217/0.4079, allocations: 425 kB / 391 MB, free: 4.047 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.914e-05/0.408, allocations: 27.69 kB / 391 MB, free: 4.047 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.4082, allocations: 385 kB / 391.4 MB, free: 3.707 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001668/0.4098, allocations: 455.2 kB / 391.8 MB, free: 3.621 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001831/0.4117, allocations: 0.7108 MB / 392.5 MB, free: 3.09 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001853/0.4135, allocations: 0.5304 MB / 393.1 MB, free: 2.836 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.742e-05/0.4136, allocations: 5.094 kB / 393.1 MB, free: 2.836 MB / 302.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.005029/0.4186, allocations: 1.5 MB / 394.6 MB, free: 2.145 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.856e-05/0.4187, allocations: 9.125 kB / 394.6 MB, free: 2.145 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.822e-05/0.4187, allocations: 14.91 kB / 394.6 MB, free: 2.137 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008638/0.4196, allocations: 198.2 kB / 394.8 MB, free: 2.043 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002083/0.4217, allocations: 303.3 kB / 395.1 MB, free: 1.984 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005358/0.4271, allocations: 4.005 MB / 399.1 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001369/0.4285, allocations: 91.75 kB / 399.2 MB, free: 14.37 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000242/0.4287, allocations: 56.14 kB / 399.2 MB, free: 14.35 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (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.00074/0.4295, allocations: 271.8 kB / 399.5 MB, free: 14.14 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001955/0.4297, allocations: 67.39 kB / 399.6 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003235/0.4329, allocations: 1.404 MB / 401 MB, free: 13.34 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.838e-06/0.433, allocations: 12.62 kB / 401 MB, free: 13.34 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-05/0.433, allocations: 2.969 kB / 401 MB, free: 13.34 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.404e-05/0.433, allocations: 8.844 kB / 401 MB, free: 13.34 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00519/0.4382, allocations: 2.648 MB / 403.6 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.446e-06/0.4382, allocations: 0 / 403.6 MB, free: 11.6 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009697/0.4392, allocations: 233.1 kB / 403.9 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005069/0.4397, allocations: 163.1 kB / 404 MB, free: 11.47 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.738e-05/0.4398, allocations: 29.05 kB / 404 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00384/0.4437, allocations: 3.84 MB / 407.9 MB, free: 7.484 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.4437, allocations: 480 / 407.9 MB, free: 7.484 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004052/0.4478, allocations: 1.98 MB / 409.9 MB, free: 5.457 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005078/0.4483, allocations: 220.3 kB / 410.1 MB, free: 5.223 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00019/0.4485, allocations: 27.95 kB / 410.1 MB, free: 5.195 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008389/0.4493, allocations: 82.78 kB / 410.2 MB, free: 5.121 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001844/0.4495, allocations: 88.81 kB / 410.3 MB, free: 5.035 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.834e-05/0.4496, allocations: 39.98 kB / 410.3 MB, free: 4.996 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003503/0.45, allocations: 267.2 kB / 410.6 MB, free: 4.734 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.45, allocations: 4 kB / 410.6 MB, free: 4.73 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001524/0.4515, allocations: 300 kB / 410.9 MB, free: 4.438 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (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.004606/0.4561, allocations: 2.873 MB / 413.7 MB, free: 1.535 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003253/0.4594, allocations: 1.49 MB / 415.2 MB, free: 52 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.4594, allocations: 64 / 415.2 MB, free: 52 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001658/0.4611, allocations: 0.8898 MB / 416.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005635/0.4617, allocations: 53.55 kB / 416.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01526/0.4769, allocations: 9.836 MB / 426 MB, free: 5.09 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001024/0.478, allocations: 1.025 MB / 427 MB, free: 4.039 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001291/0.4793, allocations: 154 kB / 427.2 MB, free: 3.887 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008374/0.4802, allocations: 347.3 kB / 427.5 MB, free: 3.547 MB / 334.1 MB Notification: Performance of SimCode: time 1.192e-06/0.4802, allocations: 0 / 427.5 MB, free: 3.547 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08896/0.5692, allocations: 15.91 MB / 443.4 MB, free: 3.926 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001821/0.5694, allocations: 251.3 kB / 443.7 MB, free: 3.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.317/2.887, allocations: 0 / 443.7 MB, free: 3.68 MB / 350.1 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