Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0008426/0.0008426, allocations: 87.17 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008462/0.0008463, allocations: 183 kB / 17.21 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.504/1.504, allocations: 223.2 MB / 241.2 MB, free: 5.43 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003064/0.0003068, allocations: 6.375 kB / 300.9 MB, free: 6.102 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1258, allocations: 50.42 MB / 351.3 MB, free: 11.6 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.008582/0.1345, allocations: 5.727 MB / 357.1 MB, free: 5.852 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005427/0.1399, allocations: 2.161 MB / 359.2 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001332/0.1413, allocations: 24 kB / 359.3 MB, free: 3.656 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001405/0.1427, allocations: 274.5 kB / 359.5 MB, free: 3.387 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002653/0.1454, allocations: 0.5818 MB / 360.1 MB, free: 2.805 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002548/0.148, allocations: 0.9601 MB / 361.1 MB, free: 1.844 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002166/0.1502, allocations: 1.02 MB / 362.1 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003781/0.154, allocations: 1.558 MB / 363.6 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001044/0.155, allocations: 398.4 kB / 364 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00104/0.1561, allocations: 0.533 MB / 364.6 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002627/0.1563, allocations: 52 kB / 364.6 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001303/0.1577, allocations: 355.6 kB / 365 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003118/0.158, allocations: 191.1 kB / 365.2 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005028/0.1585, allocations: 217.1 kB / 365.4 MB, free: 13.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002092/0.1606, allocations: 1.231 MB / 366.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.1606, allocations: 0 / 366.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.1606, allocations: 4 kB / 366.6 MB, free: 12.26 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.348e-05/0.1607, allocations: 4 kB / 366.6 MB, free: 12.26 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.006403/0.1671, allocations: 1.831 MB / 368.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.079e-05/0.1672, allocations: 12.03 kB / 368.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003923/0.1676, allocations: 194.2 kB / 368.6 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003274/0.1709, allocations: 0.5099 MB / 369.1 MB, free: 9.652 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004262/0.1713, allocations: 301.5 kB / 369.4 MB, free: 9.316 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001063/0.1714, allocations: 98.58 kB / 369.5 MB, free: 9.219 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002181/0.1716, allocations: 131.9 kB / 369.7 MB, free: 9.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002408/0.1741, allocations: 1.303 MB / 371 MB, free: 7.754 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.498e-05/0.1741, allocations: 3.984 kB / 371 MB, free: 7.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001057/0.1742, allocations: 60 kB / 371 MB, free: 7.691 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.568e-05/0.1743, allocations: 32 kB / 371.1 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002451/0.1767, allocations: 1.209 MB / 372.3 MB, free: 6.445 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00675/0.1835, allocations: 4.252 MB / 376.5 MB, free: 1.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002599/0.1861, allocations: 2.44 MB / 379 MB, free: 15.27 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009433/0.1871, allocations: 0.5132 MB / 379.5 MB, free: 14.75 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001636/0.1873, allocations: 110.1 kB / 379.6 MB, free: 14.63 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.951e-05/0.1873, allocations: 43.56 kB / 379.6 MB, free: 14.58 MB / 318.1 MB Notification: Performance of pre-optimization done (n=122): time 3.206e-06/0.1873, allocations: 0 / 379.6 MB, free: 14.58 MB / 318.1 MB Notification: Performance of matching and sorting (n=125): time 0.01075/0.1981, allocations: 4.042 MB / 383.7 MB, free: 10.44 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.901e-05/0.1982, allocations: 90.11 kB / 383.8 MB, free: 10.34 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005073/0.1987, allocations: 389.4 kB / 384.1 MB, free: 9.945 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.352e-05/0.1988, allocations: 45.7 kB / 384.2 MB, free: 9.895 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003244/0.1991, allocations: 455 kB / 384.6 MB, free: 9.441 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003526/0.1995, allocations: 425.8 kB / 385 MB, free: 9.02 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.323e-05/0.1995, allocations: 28 kB / 385.1 MB, free: 8.992 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000195/0.1997, allocations: 382.7 kB / 385.4 MB, free: 8.609 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001028/0.2008, allocations: 455.7 kB / 385.9 MB, free: 8.164 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001239/0.202, allocations: 0.7114 MB / 386.6 MB, free: 7.355 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001186/0.2032, allocations: 0.5334 MB / 387.1 MB, free: 6.82 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.2032, allocations: 0 / 387.1 MB, free: 6.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.003016/0.2062, allocations: 1.498 MB / 388.6 MB, free: 5.309 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.295e-05/0.2063, allocations: 8 kB / 388.6 MB, free: 5.301 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.497e-05/0.2063, allocations: 11.95 kB / 388.7 MB, free: 5.289 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005255/0.2068, allocations: 205.5 kB / 388.9 MB, free: 5.082 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00118/0.208, allocations: 311.5 kB / 389.2 MB, free: 4.777 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0041/0.2121, allocations: 3.958 MB / 393.1 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008458/0.213, allocations: 87.92 kB / 393.2 MB, free: 484 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.909e-05/0.2131, allocations: 59.97 kB / 393.3 MB, free: 424 kB / 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.0004835/0.2136, allocations: 265.5 kB / 393.5 MB, free: 148 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001088/0.2137, allocations: 63.25 kB / 393.6 MB, free: 84 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002994/0.2167, allocations: 1.397 MB / 395 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.09e-05/0.2167, allocations: 12 kB / 395 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.2168, allocations: 4 kB / 395 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.232e-05/0.2168, allocations: 7.969 kB / 395 MB, free: 14.65 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004647/0.2214, allocations: 2.665 MB / 397.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.065e-06/0.2215, allocations: 4 kB / 397.7 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009275/0.2224, allocations: 227.7 kB / 397.9 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004446/0.2228, allocations: 169.6 kB / 398.1 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.697e-05/0.2229, allocations: 31.98 kB / 398.1 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003837/0.2268, allocations: 3.776 MB / 401.9 MB, free: 7.402 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.2268, allocations: 4.031 kB / 401.9 MB, free: 7.398 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003983/0.2308, allocations: 1.937 MB / 403.8 MB, free: 5.426 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004076/0.2312, allocations: 228.5 kB / 404 MB, free: 5.184 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001224/0.2313, allocations: 20 kB / 404 MB, free: 5.164 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006676/0.232, allocations: 76.02 kB / 404.1 MB, free: 5.09 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002021/0.2322, allocations: 88.86 kB / 404.2 MB, free: 5.004 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.763e-05/0.2323, allocations: 43.92 kB / 404.3 MB, free: 4.961 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003172/0.2326, allocations: 263.2 kB / 404.5 MB, free: 4.703 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2326, allocations: 0 / 404.5 MB, free: 4.703 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001256/0.2339, allocations: 312.1 kB / 404.8 MB, free: 4.398 MB / 334.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.004498/0.2384, allocations: 2.544 MB / 407.4 MB, free: 1.816 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003212/0.2416, allocations: 1.497 MB / 408.9 MB, free: 300 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.2417, allocations: 0 / 408.9 MB, free: 300 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00161/0.2433, allocations: 0.8858 MB / 409.7 MB, free: 15.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006565/0.244, allocations: 73.5 kB / 409.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01046/0.2544, allocations: 5.301 MB / 415.1 MB, free: 9.832 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007652/0.2553, allocations: 1.013 MB / 416.1 MB, free: 8.789 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008064/0.2561, allocations: 150.6 kB / 416.3 MB, free: 8.637 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005277/0.2566, allocations: 343.3 kB / 416.6 MB, free: 8.301 MB / 350.1 MB Notification: Performance of SimCode: time 1.743e-06/0.2566, allocations: 0 / 416.6 MB, free: 8.301 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2369/0.4935, allocations: 15.87 MB / 432.5 MB, free: 62.72 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00016/0.4937, allocations: 248.6 kB / 432.7 MB, free: 62.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.311/2.805, allocations: 4 kB / 432.7 MB, free: 62.41 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat does not exist to compare? outputFormat=mat