Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_SeriesBode",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_SeriesBode",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 3.2.3+maint.om/package.mo): time 0.0009617/0.0009616, allocations: 178.9 kB / 8.478 MB, free: 1.875 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.046/1.046, allocations: 205.2 MB / 214.1 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008771/0.0008771, allocations: 82.92 kB / 262.1 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08667/0.08758, allocations: 52.99 MB / 315.1 MB, free: 8.508 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1746/0.2622, allocations: 47.56 MB / 362.6 MB, free: 45.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08183/0.3441, allocations: 82.05 MB / 444.7 MB, free: 3.824 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001906/0.3443, allocations: 76.45 kB / 444.8 MB, free: 3.75 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 171 * Number of variables: 171 Notification: Performance of Generate backend data structure: time 0.04351/0.3878, allocations: 18.3 MB / 463.1 MB, free: 1.305 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.3879, allocations: 15.98 kB / 463.1 MB, free: 1.289 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003177/0.3911, allocations: 486.7 kB / 463.5 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005136/0.3916, allocations: 362.6 kB / 463.9 MB, free: 428 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.905e-05/0.3916, allocations: 28 kB / 463.9 MB, free: 400 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001139/0.3918, allocations: 43.89 kB / 464 MB, free: 356 kB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001074/0.3928, allocations: 0.6444 MB / 464.6 MB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009569/0.3938, allocations: 0.5987 MB / 465.2 MB, free: 15.09 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.564e-05/0.3938, allocations: 4 kB / 465.2 MB, free: 15.09 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.12e-05/0.3939, allocations: 0 / 465.2 MB, free: 15.09 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.9e-05/0.3939, allocations: 16 kB / 465.2 MB, free: 15.07 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003766/0.3977, allocations: 2.796 MB / 468 MB, free: 12.04 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007562/0.3985, allocations: 452.8 kB / 468.5 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002598/0.3987, allocations: 183.2 kB / 468.7 MB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.685e-05/0.3988, allocations: 101.5 kB / 468.8 MB, free: 11.29 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.988e-05/0.3989, allocations: 31 kB / 468.8 MB, free: 11.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=52): time 2.194e-06/0.3989, allocations: 0 / 468.8 MB, free: 11.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=52): time 0.001096/0.4, allocations: 471.5 kB / 469.2 MB, free: 10.78 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.039e-05/0.4, allocations: 89.55 kB / 469.3 MB, free: 10.67 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001856/0.4002, allocations: 195.8 kB / 469.5 MB, free: 10.47 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.191e-05/0.4003, allocations: 25.7 kB / 469.5 MB, free: 10.44 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001358/0.4004, allocations: 283.4 kB / 469.8 MB, free: 10.16 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001156/0.4005, allocations: 173.4 kB / 470 MB, free: 9.988 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.438e-05/0.4006, allocations: 0 / 470 MB, free: 9.988 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.4007, allocations: 347.5 kB / 470.3 MB, free: 9.641 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002426/0.4009, allocations: 149.3 kB / 470.5 MB, free: 9.492 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003413/0.4013, allocations: 354.3 kB / 470.8 MB, free: 9.059 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005461/0.4018, allocations: 236.7 kB / 471.1 MB, free: 8.828 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.76e-06/0.4019, allocations: 4 kB / 471.1 MB, free: 8.824 MB / 362.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001212/0.4031, allocations: 0.6047 MB / 471.7 MB, free: 8.211 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006907/0.4038, allocations: 2.349 MB / 474 MB, free: 5.676 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.4038, allocations: 4 kB / 474 MB, free: 5.672 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002314/0.404, allocations: 70.88 kB / 474.1 MB, free: 5.602 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000531/0.4046, allocations: 139.8 kB / 474.2 MB, free: 5.465 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001296/0.4059, allocations: 1.509 MB / 475.7 MB, free: 3.832 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000417/0.4063, allocations: 71.33 kB / 475.8 MB, free: 3.762 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.48e-05/0.4064, allocations: 32.05 kB / 475.8 MB, free: 3.73 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.462e-06/0.4064, allocations: 4 kB / 475.8 MB, free: 3.727 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001127/0.4075, allocations: 0.5295 MB / 476.4 MB, free: 3.191 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.4075, allocations: 7.938 kB / 476.4 MB, free: 3.184 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001655/0.4077, allocations: 52.78 kB / 476.4 MB, free: 3.129 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004899/0.4082, allocations: 128.3 kB / 476.5 MB, free: 3.004 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001123/0.4093, allocations: 1.439 MB / 478 MB, free: 1.457 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003736/0.4097, allocations: 47.56 kB / 478 MB, free: 1.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.059e-05/0.4098, allocations: 36.05 kB / 478.1 MB, free: 1.375 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000152/0.41, allocations: 116.8 kB / 478.2 MB, free: 1.254 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001246/0.4101, allocations: 39.64 kB / 478.2 MB, free: 1.215 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001192/0.4113, allocations: 0.5515 MB / 478.8 MB, free: 0.6523 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0008098/0.4121, allocations: 449.5 kB / 479.2 MB, free: 212 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.4121, allocations: 0 / 479.2 MB, free: 212 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.4122, allocations: 3.984 kB / 479.2 MB, free: 208 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001751/0.4139, allocations: 1.164 MB / 480.4 MB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.4139, allocations: 4 kB / 480.4 MB, free: 14.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004348/0.4144, allocations: 87.89 kB / 480.5 MB, free: 14.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001737/0.4146, allocations: 54.45 kB / 480.5 MB, free: 14.83 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.501e-05/0.4146, allocations: 11.98 kB / 480.5 MB, free: 14.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001228/0.4158, allocations: 1.506 MB / 482 MB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.4158, allocations: 0 / 482 MB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001272/0.4171, allocations: 0.8048 MB / 482.8 MB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002282/0.4194, allocations: 1.881 MB / 484.7 MB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001728/0.4196, allocations: 160.5 kB / 484.9 MB, free: 10.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.515e-05/0.4197, allocations: 0 / 484.9 MB, free: 10.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003334/0.42, allocations: 24.11 kB / 484.9 MB, free: 10.28 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.846e-05/0.4201, allocations: 28.39 kB / 484.9 MB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.738e-05/0.4202, allocations: 19.98 kB / 485 MB, free: 10.23 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001148/0.4203, allocations: 144.5 kB / 485.1 MB, free: 10.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002064/0.4223, allocations: 286.8 kB / 485.4 MB, free: 9.812 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSensor.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002431/0.4226, allocations: 155 kB / 485.5 MB, free: 9.648 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001393/0.424, allocations: 0.9997 MB / 486.5 MB, free: 8.621 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.424, allocations: 8.062 kB / 486.5 MB, free: 8.613 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004105/0.4244, allocations: 335.3 kB / 486.9 MB, free: 8.277 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002675/0.4247, allocations: 25 kB / 486.9 MB, free: 8.254 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003243/0.428, allocations: 1.238 MB / 488.1 MB, free: 6.984 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004833/0.4285, allocations: 0.9025 MB / 489 MB, free: 6.055 MB / 378.7 MB Notification: Performance of SimCode: time 2.91e-07/0.4285, allocations: 4 kB / 489 MB, free: 6.051 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_SeriesBode_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_SeriesBode.fmu > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesBode_res.mat does not exist to compare? outputFormat=mat