Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001773/0.001773, allocations: 184.6 kB / 8.132 MB, free: 2.184 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.257/1.257, allocations: 221.4 MB / 229.9 MB, free: 3.004 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009042/0.0009042, allocations: 100.3 kB / 280.8 MB, free: 1.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09141/0.09235, allocations: 55.83 MB / 336.6 MB, free: 9.395 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1746/0.267, allocations: 50.39 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08107/0.3481, allocations: 80.13 MB / 467.1 MB, free: 6.645 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000223/0.3484, allocations: 81.95 kB / 467.2 MB, free: 6.566 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.02459/0.373, allocations: 8.492 MB / 475.7 MB, free: 14.05 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.373, allocations: 8 kB / 475.7 MB, free: 14.04 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.1e-05/0.3731, allocations: 35.62 kB / 475.8 MB, free: 14.01 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003652/0.3735, allocations: 275.4 kB / 476 MB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.527e-05/0.3735, allocations: 12 kB / 476 MB, free: 13.69 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.515e-05/0.3736, allocations: 19.91 kB / 476.1 MB, free: 13.67 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004005/0.374, allocations: 194.4 kB / 476.2 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003889/0.3744, allocations: 208.8 kB / 476.4 MB, free: 13.27 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.3744, allocations: 0 / 476.4 MB, free: 13.27 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.252e-05/0.3744, allocations: 0 / 476.4 MB, free: 13.27 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.899e-06/0.3745, allocations: 12 kB / 476.5 MB, free: 13.25 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001729/0.3762, allocations: 1.068 MB / 477.5 MB, free: 12.1 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002132/0.3764, allocations: 118.6 kB / 477.6 MB, free: 11.98 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.424e-05/0.3765, allocations: 44.86 kB / 477.7 MB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.221e-05/0.3766, allocations: 8 kB / 477.7 MB, free: 11.92 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.893e-05/0.3766, allocations: 34.56 kB / 477.7 MB, free: 11.88 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 1.443e-06/0.3766, allocations: 0 / 477.7 MB, free: 11.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.001131/0.3777, allocations: 375.5 kB / 478.1 MB, free: 11.5 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.178e-05/0.3778, allocations: 55.59 kB / 478.2 MB, free: 11.43 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003153/0.3781, allocations: 226.9 kB / 478.4 MB, free: 11.2 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.135e-05/0.3781, allocations: 25.7 kB / 478.4 MB, free: 11.17 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.3783, allocations: 199.5 kB / 478.6 MB, free: 10.97 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.707e-05/0.3783, allocations: 74.91 kB / 478.7 MB, free: 10.9 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.223e-05/0.3784, allocations: 0 / 478.7 MB, free: 10.9 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.3785, allocations: 334.8 kB / 479 MB, free: 10.56 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001188/0.3786, allocations: 60 kB / 479.1 MB, free: 10.5 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000178/0.3788, allocations: 152.2 kB / 479.2 MB, free: 10.31 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001537/0.3789, allocations: 85.08 kB / 479.3 MB, free: 10.23 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.379, allocations: 0 / 479.3 MB, free: 10.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005111/0.3795, allocations: 302.5 kB / 479.6 MB, free: 9.922 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.263e-05/0.3795, allocations: 4 kB / 479.6 MB, free: 9.918 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.3795, allocations: 4 kB / 479.6 MB, free: 9.914 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002294/0.3797, allocations: 58.03 kB / 479.6 MB, free: 9.852 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003725/0.3801, allocations: 83.83 kB / 479.7 MB, free: 9.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001876/0.382, allocations: 2.517 MB / 482.2 MB, free: 7.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002966/0.3823, allocations: 24.09 kB / 482.3 MB, free: 6.996 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.705e-05/0.3824, allocations: 16 kB / 482.3 MB, free: 6.98 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 35 * 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 9.795e-05/0.3825, allocations: 119.7 kB / 482.4 MB, free: 6.859 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.405e-05/0.3825, allocations: 31.64 kB / 482.4 MB, free: 6.828 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.16e-05/0.3826, allocations: 26.06 kB / 482.5 MB, free: 6.809 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.3826, allocations: 4.75 kB / 482.5 MB, free: 6.805 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.3826, allocations: 0 / 482.5 MB, free: 6.805 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.341e-06/0.3826, allocations: 4.125 kB / 482.5 MB, free: 6.801 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003092/0.3829, allocations: 278.2 kB / 482.7 MB, free: 6.492 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.3829, allocations: 3.984 kB / 482.7 MB, free: 6.488 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000245/0.3832, allocations: 43.97 kB / 482.8 MB, free: 6.445 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001546/0.3834, allocations: 53.67 kB / 482.8 MB, free: 6.387 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.521e-05/0.3834, allocations: 0 / 482.8 MB, free: 6.387 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001728/0.3851, allocations: 2.513 MB / 485.3 MB, free: 3.641 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.3851, allocations: 4 kB / 485.4 MB, free: 3.637 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003957/0.3855, allocations: 308.2 kB / 485.7 MB, free: 3.316 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000464/0.386, allocations: 0.6707 MB / 486.3 MB, free: 2.621 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.184e-05/0.3861, allocations: 104.8 kB / 486.4 MB, free: 2.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.576e-05/0.3861, allocations: 0 / 486.4 MB, free: 2.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002427/0.3864, allocations: 19.98 kB / 486.4 MB, free: 2.48 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.225e-05/0.3864, allocations: 11.97 kB / 486.5 MB, free: 2.469 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.435e-05/0.3865, allocations: 8 kB / 486.5 MB, free: 2.461 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001439/0.3866, allocations: 173.7 kB / 486.6 MB, free: 2.293 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009561/0.3876, allocations: 60 kB / 486.7 MB, free: 2.234 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * 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.0001318/0.3877, allocations: 103.4 kB / 486.8 MB, free: 2.125 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005891/0.3883, allocations: 395.3 kB / 487.2 MB, free: 1.719 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3883, allocations: 0 / 487.2 MB, free: 1.719 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003225/0.3887, allocations: 292.3 kB / 487.5 MB, free: 1.414 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002347/0.3889, allocations: 26.33 kB / 487.5 MB, free: 1.391 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009234/0.3898, allocations: 340.7 kB / 487.8 MB, free: 1.031 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004222/0.3903, allocations: 0.816 MB / 488.6 MB, free: 196 kB / 362.7 MB Notification: Performance of SimCode: time 3.1e-07/0.3903, allocations: 0 / 488.6 MB, free: 196 kB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat does not exist to compare? outputFormat=mat