Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance",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 trunk/package.mo): time 0.0009928/0.0009928, allocations: 199.2 kB / 8.541 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.099/1.099, allocations: 225.5 MB / 234.4 MB, free: 3.395 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008913/0.0008913, allocations: 92.05 kB / 286.3 MB, free: 5.234 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08932/0.09024, allocations: 56.9 MB / 343.2 MB, free: 8.621 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07841/0.1687, allocations: 51.48 MB / 394.7 MB, free: 5.094 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1994/0.3681, allocations: 82.88 MB / 477.6 MB, free: 10 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001681/0.3683, allocations: 83.97 kB / 477.7 MB, free: 9.969 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: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.03387/0.4022, allocations: 16.41 MB / 494.1 MB, free: 13.08 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.4022, allocations: 11.98 kB / 494.1 MB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002588/0.4048, allocations: 385.4 kB / 494.5 MB, free: 12.73 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003775/0.4052, allocations: 309.7 kB / 494.8 MB, free: 12.44 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.421e-05/0.4052, allocations: 16 kB / 494.8 MB, free: 12.42 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.634e-05/0.4053, allocations: 36 kB / 494.8 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008151/0.4061, allocations: 0.4989 MB / 495.3 MB, free: 12.06 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006498/0.4068, allocations: 397.8 kB / 495.7 MB, free: 11.78 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.075e-05/0.4068, allocations: 0 / 495.7 MB, free: 11.78 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.751e-05/0.4069, allocations: 4 kB / 495.7 MB, free: 11.78 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.4069, allocations: 12 kB / 495.7 MB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002787/0.4097, allocations: 1.858 MB / 497.6 MB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006569/0.4104, allocations: 409.5 kB / 498 MB, free: 9.934 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002396/0.4106, allocations: 176.2 kB / 498.2 MB, free: 9.824 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001372/0.4108, allocations: 168.5 kB / 498.3 MB, free: 9.621 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.095e-05/0.4108, allocations: 42.62 kB / 498.4 MB, free: 9.574 MB / 362.7 MB Notification: Performance of pre-optimization done (n=47): time 1.763e-06/0.4108, allocations: 0 / 498.4 MB, free: 9.574 MB / 362.7 MB Notification: Performance of matching and sorting (n=47): time 0.0009615/0.4118, allocations: 429.9 kB / 498.8 MB, free: 9.262 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.732e-05/0.4118, allocations: 59.78 kB / 498.9 MB, free: 9.188 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001267/0.4119, allocations: 151.9 kB / 499 MB, free: 9.051 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.051e-05/0.412, allocations: 29.7 kB / 499 MB, free: 9.016 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.837e-05/0.4121, allocations: 213.6 kB / 499.2 MB, free: 8.82 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.93e-05/0.4122, allocations: 155 kB / 499.4 MB, free: 8.684 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.962e-05/0.4122, allocations: 0 / 499.4 MB, free: 8.684 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.499e-05/0.4123, allocations: 336.9 kB / 499.7 MB, free: 8.355 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001957/0.4125, allocations: 134.1 kB / 499.8 MB, free: 8.285 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002424/0.4128, allocations: 203.7 kB / 0.4883 GB, free: 8.129 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004248/0.4132, allocations: 175.7 kB / 0.4885 GB, free: 8.02 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.4132, allocations: 0 / 0.4885 GB, free: 8.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0009687/0.4142, allocations: 0.4976 MB / 0.489 GB, free: 7.641 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.4142, allocations: 4 kB / 0.489 GB, free: 7.637 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.4142, allocations: 4 kB / 0.489 GB, free: 7.633 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003146/0.4145, allocations: 85.97 kB / 0.4891 GB, free: 7.562 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004183/0.415, allocations: 91.27 kB / 0.4892 GB, free: 7.477 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001727/0.4167, allocations: 1.736 MB / 0.4909 GB, free: 5.824 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000289/0.417, allocations: 39.7 kB / 0.4909 GB, free: 5.785 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.58e-05/0.417, allocations: 22.38 kB / 0.4909 GB, free: 5.77 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 49 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001008/0.4172, allocations: 112.9 kB / 0.491 GB, free: 5.652 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.085e-05/0.4172, allocations: 31.64 kB / 0.4911 GB, free: 5.621 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001055/0.4183, allocations: 0.4975 MB / 0.4915 GB, free: 5.25 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.632e-06/0.4183, allocations: 8 kB / 0.4915 GB, free: 5.242 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.4183, allocations: 4 kB / 0.4915 GB, free: 5.238 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/0.4183, allocations: 3.984 kB / 0.4916 GB, free: 5.234 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001506/0.4198, allocations: 1.04 MB / 0.4926 GB, free: 4.375 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.4199, allocations: 0 / 0.4926 GB, free: 4.375 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003704/0.4202, allocations: 79.66 kB / 0.4926 GB, free: 4.301 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002627/0.4205, allocations: 85.44 kB / 0.4927 GB, free: 4.23 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.327e-05/0.4205, allocations: 10.92 kB / 0.4927 GB, free: 4.223 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001663/0.4222, allocations: 1.73 MB / 0.4944 GB, free: 2.398 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.4222, allocations: 4 kB / 0.4944 GB, free: 2.395 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001181/0.4234, allocations: 0.7302 MB / 0.4951 GB, free: 1.648 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002133/0.4256, allocations: 1.719 MB / 0.4968 GB, free: 15.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.988e-05/0.4257, allocations: 104.8 kB / 0.4969 GB, free: 15.78 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.624e-05/0.4257, allocations: 8 kB / 0.4969 GB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002556/0.426, allocations: 11.94 kB / 0.4969 GB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.631e-05/0.4261, allocations: 28.39 kB / 0.497 GB, free: 15.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.503e-05/0.4261, allocations: 16.12 kB / 0.497 GB, free: 15.72 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.801e-05/0.4262, allocations: 120.1 kB / 0.4971 GB, free: 15.61 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001164/0.4274, allocations: 155.5 kB / 0.4972 GB, free: 15.45 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (capacitor.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 41 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000252/0.4276, allocations: 151.1 kB / 0.4974 GB, free: 15.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007766/0.4284, allocations: 0.4963 MB / 0.4979 GB, free: 14.79 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4284, allocations: 4.375 kB / 0.4979 GB, free: 14.79 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004489/0.4289, allocations: 327.3 kB / 0.4982 GB, free: 14.46 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002163/0.4291, allocations: 10.81 kB / 0.4982 GB, free: 14.45 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001124/0.4302, allocations: 0.5485 MB / 0.4987 GB, free: 13.87 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004541/0.4307, allocations: 0.8551 MB / 0.4996 GB, free: 12.99 MB / 378.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4307, allocations: 0 / 0.4996 GB, free: 12.99 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance.fmu > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance_res.mat does not exist to compare? outputFormat=mat