Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.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.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",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.001115/0.001115, allocations: 199.6 kB / 8.541 MB, free: 1.809 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.179/1.179, allocations: 225.5 MB / 234.4 MB, free: 3.441 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009749/0.0009746, allocations: 98.94 kB / 286.3 MB, free: 5.227 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1006/0.1016, allocations: 56.91 MB / 343.2 MB, free: 8.629 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08632/0.188, allocations: 51.48 MB / 394.7 MB, free: 5.09 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.231/0.419, allocations: 81.69 MB / 476.4 MB, free: 10.82 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002099/0.4193, allocations: 76.08 kB / 476.5 MB, free: 10.8 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.01675/0.436, allocations: 6.657 MB / 483.2 MB, free: 5.656 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.4361, allocations: 8 kB / 483.2 MB, free: 5.648 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.272e-05/0.4362, allocations: 35.62 kB / 483.2 MB, free: 5.613 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003258/0.4365, allocations: 283.3 kB / 483.5 MB, free: 5.328 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.635e-05/0.4365, allocations: 9.688 kB / 483.5 MB, free: 5.32 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.535e-05/0.4366, allocations: 17.12 kB / 483.5 MB, free: 5.305 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003321/0.4369, allocations: 167.8 kB / 483.7 MB, free: 5.211 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003362/0.4372, allocations: 234.5 kB / 483.9 MB, free: 5.031 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.4373, allocations: 4 kB / 483.9 MB, free: 5.027 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.485e-05/0.4373, allocations: 0 / 483.9 MB, free: 5.027 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.665e-06/0.4373, allocations: 8 kB / 483.9 MB, free: 5.02 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001746/0.4391, allocations: 1.159 MB / 485.1 MB, free: 3.961 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002591/0.4393, allocations: 101.9 kB / 485.2 MB, free: 3.883 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.273e-05/0.4394, allocations: 49.27 kB / 485.2 MB, free: 3.848 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.61e-05/0.4395, allocations: 0 / 485.2 MB, free: 3.848 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001287/0.4396, allocations: 111 kB / 485.3 MB, free: 3.742 MB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 1.313e-06/0.4396, allocations: 0 / 485.3 MB, free: 3.742 MB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003287/0.4399, allocations: 136.6 kB / 485.5 MB, free: 3.625 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.251e-05/0.44, allocations: 77.11 kB / 485.5 MB, free: 3.531 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002242/0.4402, allocations: 234.7 kB / 485.8 MB, free: 3.344 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.192e-05/0.4402, allocations: 29.7 kB / 485.8 MB, free: 3.309 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.302e-05/0.4403, allocations: 196.5 kB / 486 MB, free: 3.129 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.917e-05/0.4404, allocations: 29.98 kB / 486 MB, free: 3.105 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.301e-05/0.4404, allocations: 0 / 486 MB, free: 3.105 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.452e-05/0.4405, allocations: 337.2 kB / 486.3 MB, free: 2.777 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.432e-05/0.4406, allocations: 48.86 kB / 486.4 MB, free: 2.75 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001401/0.4407, allocations: 159.8 kB / 486.5 MB, free: 2.57 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001066/0.4408, allocations: 66.25 kB / 486.6 MB, free: 2.527 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.4409, allocations: 0 / 486.6 MB, free: 2.527 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003723/0.4412, allocations: 243.2 kB / 486.8 MB, free: 2.324 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/0.4413, allocations: 6.344 kB / 486.8 MB, free: 2.32 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.4413, allocations: 4 kB / 486.9 MB, free: 2.316 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001531/0.4414, allocations: 32.56 kB / 486.9 MB, free: 2.285 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002807/0.4417, allocations: 75.98 kB / 487 MB, free: 2.211 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007373/0.4425, allocations: 1.249 MB / 488.2 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003376/0.4428, allocations: 55.88 kB / 488.3 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.468e-05/0.4429, allocations: 11.81 kB / 488.3 MB, free: 0.8281 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (27): * Single equations (assignments): 25 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.494e-05/0.4429, allocations: 120.8 kB / 488.4 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.214e-05/0.443, allocations: 23.72 kB / 488.4 MB, free: 0.6797 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.997e-05/0.443, allocations: 24.83 kB / 488.4 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.443, allocations: 0 / 488.4 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.443, allocations: 3.938 kB / 488.4 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.443, allocations: 7.984 kB / 488.4 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002947/0.4433, allocations: 405 kB / 488.8 MB, free: 276 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.4434, allocations: 7.375 kB / 488.9 MB, free: 272 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001829/0.4435, allocations: 43.95 kB / 488.9 MB, free: 228 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.136e-05/0.4436, allocations: 28.66 kB / 488.9 MB, free: 200 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.647e-05/0.4437, allocations: 0 / 488.9 MB, free: 200 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008042/0.4445, allocations: 1.246 MB / 490.2 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/0.4445, allocations: 4.844 kB / 490.2 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002842/0.4448, allocations: 178.3 kB / 490.3 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003466/0.4451, allocations: 0.5457 MB / 490.9 MB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.064e-05/0.4452, allocations: 100.8 kB / 491 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.528e-05/0.4453, allocations: 13.84 kB / 491 MB, free: 14.03 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002545/0.4455, allocations: 35.97 kB / 491 MB, free: 13.99 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.167e-05/0.4456, allocations: 15.41 kB / 491.1 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.485e-05/0.4456, allocations: 5.312 kB / 491.1 MB, free: 13.98 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001567/0.4458, allocations: 179.1 kB / 491.2 MB, free: 13.84 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009679/0.4468, allocations: 67.78 kB / 491.3 MB, free: 13.77 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001385/0.4469, allocations: 118.5 kB / 491.4 MB, free: 13.65 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004203/0.4473, allocations: 261.3 kB / 491.7 MB, free: 13.42 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.4474, allocations: 0 / 491.7 MB, free: 13.42 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002188/0.4476, allocations: 159.8 kB / 491.8 MB, free: 13.27 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002608/0.4479, allocations: 38.91 kB / 491.9 MB, free: 13.25 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006683/0.4485, allocations: 296.4 kB / 492.2 MB, free: 12.96 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003678/0.4489, allocations: 0.7861 MB / 492.9 MB, free: 12.14 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4489, allocations: 0 / 492.9 MB, free: 12.14 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat does not exist to compare? outputFormat=mat