Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.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.Analog.Examples.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",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.001427/0.001427, allocations: 173.9 kB / 8.473 MB, free: 1.867 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: 5.141 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008177/0.0008177, allocations: 86.3 kB / 262.1 MB, free: 5.191 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1453/0.1461, allocations: 52.99 MB / 315.1 MB, free: 41.37 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06318/0.2093, allocations: 47.57 MB / 362.6 MB, free: 9.848 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2046/0.414, allocations: 78.37 MB / 441 MB, free: 10.63 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001924/0.4142, allocations: 82 kB / 441.1 MB, free: 10.62 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.01559/0.4298, allocations: 6.06 MB / 447.2 MB, free: 9.5 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.04e-05/0.4298, allocations: 11.56 kB / 447.2 MB, free: 9.496 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.704e-05/0.4299, allocations: 31.03 kB / 447.2 MB, free: 9.48 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003089/0.4302, allocations: 276 kB / 447.5 MB, free: 9.238 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.4303, allocations: 7.625 kB / 447.5 MB, free: 9.238 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.13e-05/0.4303, allocations: 11.41 kB / 447.5 MB, free: 9.238 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002537/0.4306, allocations: 143.9 kB / 447.6 MB, free: 9.234 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002682/0.4308, allocations: 168 kB / 447.8 MB, free: 9.172 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.4309, allocations: 0 / 447.8 MB, free: 9.172 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.418e-05/0.4309, allocations: 0 / 447.8 MB, free: 9.172 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.4309, allocations: 7.656 kB / 447.8 MB, free: 9.172 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001527/0.4324, allocations: 0.9151 MB / 448.7 MB, free: 8.574 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002777/0.4327, allocations: 122.7 kB / 448.8 MB, free: 8.543 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.354e-05/0.4328, allocations: 51.95 kB / 448.9 MB, free: 8.535 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.745e-05/0.4329, allocations: 3.906 kB / 448.9 MB, free: 8.535 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001529/0.433, allocations: 124 kB / 449 MB, free: 8.445 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 2.234e-06/0.433, allocations: 4 kB / 449 MB, free: 8.441 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005586/0.4336, allocations: 216.5 kB / 449.2 MB, free: 8.359 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.235e-05/0.4337, allocations: 106.1 kB / 449.3 MB, free: 8.234 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001663/0.4338, allocations: 212.8 kB / 449.5 MB, free: 8.121 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.982e-05/0.4339, allocations: 26.64 kB / 449.6 MB, free: 8.09 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.307e-05/0.4339, allocations: 162.8 kB / 449.7 MB, free: 7.957 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.533e-05/0.4339, allocations: 39.14 kB / 449.8 MB, free: 7.926 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.089e-05/0.434, allocations: 3.938 kB / 449.8 MB, free: 7.922 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.51e-05/0.434, allocations: 333 kB / 450.1 MB, free: 7.602 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.303e-05/0.4341, allocations: 49.09 kB / 450.1 MB, free: 7.598 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.51e-05/0.4342, allocations: 111.3 kB / 450.2 MB, free: 7.52 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.378e-05/0.4343, allocations: 49.83 kB / 450.3 MB, free: 7.512 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.4343, allocations: 0 / 450.3 MB, free: 7.512 MB / 314.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005533/0.4349, allocations: 287.1 kB / 450.6 MB, free: 7.41 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000108/0.435, allocations: 0.6135 MB / 451.2 MB, free: 6.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.435, allocations: 3.844 kB / 451.2 MB, free: 6.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001912/0.4352, allocations: 49.59 kB / 451.2 MB, free: 6.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002011/0.4354, allocations: 42.88 kB / 451.3 MB, free: 6.738 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000293/0.4357, allocations: 0.5849 MB / 451.9 MB, free: 6.203 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003202/0.436, allocations: 54.06 kB / 451.9 MB, free: 6.184 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.067e-05/0.4361, allocations: 11.27 kB / 451.9 MB, free: 6.18 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.642e-06/0.4361, allocations: 3.844 kB / 451.9 MB, free: 6.18 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002436/0.4363, allocations: 150.5 kB / 452.1 MB, free: 6.145 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.4363, allocations: 3.812 kB / 452.1 MB, free: 6.145 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.986e-05/0.4364, allocations: 28.05 kB / 452.1 MB, free: 6.133 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001875/0.4366, allocations: 50.73 kB / 452.2 MB, free: 6.117 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007397/0.4373, allocations: 1.381 MB / 453.5 MB, free: 4.785 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002642/0.4376, allocations: 42.73 kB / 453.6 MB, free: 4.766 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.568e-05/0.4376, allocations: 11.06 kB / 453.6 MB, free: 4.766 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: opAmp.v_in:VARIABLE(unit = "V" ) "Input voltage difference" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * 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: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001082/0.4378, allocations: 113.7 kB / 453.7 MB, free: 4.652 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.283e-05/0.4378, allocations: 23.19 kB / 453.7 MB, free: 4.641 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.882e-05/0.4378, allocations: 20.75 kB / 453.7 MB, free: 4.637 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.155e-06/0.4379, allocations: 7.656 kB / 453.8 MB, free: 4.633 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.4379, allocations: 3.984 kB / 453.8 MB, free: 4.629 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.4379, allocations: 0 / 453.8 MB, free: 4.629 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001629/0.438, allocations: 257.2 kB / 454 MB, free: 4.426 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.438, allocations: 0 / 454 MB, free: 4.426 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001494/0.4382, allocations: 35.03 kB / 454 MB, free: 4.414 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001035/0.4383, allocations: 41.31 kB / 454.1 MB, free: 4.398 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.477e-05/0.4383, allocations: 5.906 kB / 454.1 MB, free: 4.398 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001117/0.4395, allocations: 1.423 MB / 455.5 MB, free: 19.12 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.4395, allocations: 7.984 kB / 455.5 MB, free: 19.12 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004627/0.4399, allocations: 249.4 kB / 455.8 MB, free: 19 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005682/0.4405, allocations: 0.6186 MB / 456.4 MB, free: 18.5 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.433e-05/0.4406, allocations: 104.2 kB / 456.5 MB, free: 18.39 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.234e-05/0.4407, allocations: 0 / 456.5 MB, free: 18.39 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002825/0.441, allocations: 42.98 kB / 456.5 MB, free: 18.38 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.895e-05/0.441, allocations: 19.05 kB / 456.5 MB, free: 18.37 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.296e-05/0.441, allocations: 7.672 kB / 456.5 MB, free: 18.37 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001304/0.4412, allocations: 166.1 kB / 456.7 MB, free: 18.29 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001538/0.4427, allocations: 119.1 kB / 456.8 MB, free: 18.26 MB / 330.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: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001504/0.4429, allocations: 105.8 kB / 456.9 MB, free: 18.17 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005707/0.4435, allocations: 385.1 kB / 457.3 MB, free: 17.98 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.4435, allocations: 0 / 457.3 MB, free: 17.98 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000189/0.4437, allocations: 166.6 kB / 457.5 MB, free: 17.87 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002368/0.4439, allocations: 30.27 kB / 457.5 MB, free: 17.87 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005882/0.4445, allocations: 278.1 kB / 457.8 MB, free: 17.71 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000353/0.4449, allocations: 0.7769 MB / 458.5 MB, free: 16.97 MB / 330.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4449, allocations: 0 / 458.5 MB, free: 16.97 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat does not exist to compare? outputFormat=mat