Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.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.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001323/0.001323, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 223.2 MB / 240.3 MB, free: 11.91 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008721/0.0008721, allocations: 94.41 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002962/0.0002964, allocations: 8 kB / 351.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2808/0.2811, allocations: 50.4 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1135/0.3946, allocations: 81.72 MB / 483.3 MB, free: 14.76 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002821/0.395, allocations: 83.95 kB / 483.4 MB, free: 14.68 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01832/0.4133, allocations: 6.268 MB / 489.7 MB, free: 8.379 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.4134, allocations: 0 / 489.7 MB, free: 8.379 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.879e-05/0.4134, allocations: 8 kB / 489.7 MB, free: 8.371 MB / 362.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.001297/0.4147, allocations: 0.6385 MB / 490.3 MB, free: 7.68 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.425e-05/0.4148, allocations: 12.03 kB / 490.3 MB, free: 7.668 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.324e-05/0.4149, allocations: 62.53 kB / 490.4 MB, free: 7.598 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.674e-05/0.4149, allocations: 31.62 kB / 490.4 MB, free: 7.566 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004437/0.4154, allocations: 290.9 kB / 490.7 MB, free: 7.242 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.147e-05/0.4154, allocations: 20.56 kB / 490.7 MB, free: 7.223 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.227e-05/0.4155, allocations: 24 kB / 490.7 MB, free: 7.199 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007575/0.4162, allocations: 335.9 kB / 491.1 MB, free: 6.863 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.4163, allocations: 3.938 kB / 491.1 MB, free: 6.859 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.275e-05/0.4163, allocations: 11.98 kB / 491.1 MB, free: 6.848 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.4163, allocations: 8 kB / 491.1 MB, free: 6.84 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008037/0.4171, allocations: 302.1 kB / 491.4 MB, free: 6.543 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00201/0.4192, allocations: 1.219 MB / 492.6 MB, free: 5.23 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007894/0.42, allocations: 238.5 kB / 492.8 MB, free: 4.988 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.656e-05/0.42, allocations: 4 kB / 492.8 MB, free: 4.984 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004768/0.4205, allocations: 166.1 kB / 493 MB, free: 4.805 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 2.034e-06/0.4205, allocations: 0 / 493 MB, free: 4.805 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.001294/0.4218, allocations: 459.6 kB / 493.4 MB, free: 4.328 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.397e-05/0.4219, allocations: 81.11 kB / 493.5 MB, free: 4.23 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000355/0.4222, allocations: 287.7 kB / 493.8 MB, free: 3.945 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.437e-05/0.4223, allocations: 37.64 kB / 493.8 MB, free: 3.902 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001491/0.4224, allocations: 207.5 kB / 494 MB, free: 3.695 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.459e-05/0.4225, allocations: 35.55 kB / 494.1 MB, free: 3.66 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.372e-05/0.4225, allocations: 4 kB / 494.1 MB, free: 3.656 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.4227, allocations: 342.8 kB / 494.4 MB, free: 3.312 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003423/0.423, allocations: 108.2 kB / 494.5 MB, free: 3.207 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004111/0.4235, allocations: 228.6 kB / 494.7 MB, free: 2.934 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003856/0.4238, allocations: 166.3 kB / 494.9 MB, free: 2.766 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.4239, allocations: 0 / 494.9 MB, free: 2.766 MB / 362.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009848/0.4249, allocations: 430.8 kB / 495.3 MB, free: 2.332 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.256e-05/0.4249, allocations: 33.7 kB / 495.4 MB, free: 2.293 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.4249, allocations: 8.094 kB / 495.4 MB, free: 2.285 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001923/0.4251, allocations: 32.83 kB / 495.4 MB, free: 2.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002889/0.4254, allocations: 67.89 kB / 495.5 MB, free: 2.184 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001089/0.4265, allocations: 1.308 MB / 496.8 MB, free: 0.7422 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003873/0.4269, allocations: 63.81 kB / 496.8 MB, free: 0.6797 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.637e-05/0.427, allocations: 16 kB / 496.9 MB, free: 0.6641 MB / 362.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 () * Number of clocked 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 0.0001952/0.4272, allocations: 153.1 kB / 497 MB, free: 0.5078 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.786e-05/0.4272, allocations: 27.7 kB / 497 MB, free: 492 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.056e-05/0.4273, allocations: 30.61 kB / 497.1 MB, free: 460 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.4273, allocations: 0 / 497.1 MB, free: 460 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.4273, allocations: 4 kB / 497.1 MB, free: 456 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.4273, allocations: 3.953 kB / 497.1 MB, free: 452 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005006/0.4278, allocations: 463.1 kB / 497.5 MB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.4278, allocations: 4 kB / 497.5 MB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000243/0.4281, allocations: 40 kB / 497.6 MB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001026/0.4282, allocations: 24.84 kB / 497.6 MB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.467e-05/0.4282, allocations: 0 / 497.6 MB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009801/0.4292, allocations: 1.304 MB / 498.9 MB, free: 14.41 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.4292, allocations: 4.031 kB / 498.9 MB, free: 14.41 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007907/0.43, allocations: 316.1 kB / 499.2 MB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.14e-05/0.4301, allocations: 108.8 kB / 499.3 MB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.653e-05/0.4302, allocations: 4 kB / 499.3 MB, free: 13.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002444/0.4304, allocations: 35.97 kB / 499.4 MB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.422e-05/0.4305, allocations: 20.06 kB / 499.4 MB, free: 13.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.234e-05/0.4305, allocations: 7.938 kB / 499.4 MB, free: 13.88 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002682/0.4308, allocations: 223.1 kB / 499.6 MB, free: 13.66 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.444e-06/0.4308, allocations: 0 / 499.6 MB, free: 13.66 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003797/0.4312, allocations: 79.84 kB / 499.7 MB, free: 13.59 MB / 378.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) * Number of clocked states: 0 () * 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.001311/0.4325, allocations: 0.9145 MB / 0.4889 GB, free: 12.63 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001057/0.4336, allocations: 441.8 kB / 0.4893 GB, free: 12.18 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.4336, allocations: 0 / 0.4893 GB, free: 12.18 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004946/0.4341, allocations: 231.5 kB / 0.4895 GB, free: 11.94 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003324/0.4345, allocations: 47.34 kB / 0.4895 GB, free: 11.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004274/0.4388, allocations: 4.223 MB / 0.4937 GB, free: 7.555 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003186/0.4391, allocations: 0.7599 MB / 0.4944 GB, free: 6.77 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001642/0.4393, allocations: 30.97 kB / 0.4944 GB, free: 6.738 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001421/0.4394, allocations: 91.28 kB / 0.4945 GB, free: 6.648 MB / 378.7 MB Notification: Performance of SimCode: time 8.21e-07/0.4394, allocations: 0 / 0.4945 GB, free: 6.648 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02046/0.4599, allocations: 5.43 MB / 0.4998 GB, free: 1.406 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002286/0.4602, allocations: 204.7 kB / 0.5 GB, free: 1.168 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.078/2.538, allocations: 4.062 kB / 0.5 GB, free: 1.164 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat does not exist to compare? outputFormat=mat