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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 112.2 kB / 16.51 MB, free: 6.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001069/0.001069, allocations: 190.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 222.9 MB / 241.1 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 43.62 kB / 300.1 MB, free: 6.188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1309, allocations: 49.45 MB / 349.5 MB, free: 4.734 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.00473/0.1357, allocations: 2.92 MB / 352.4 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001576/0.1373, allocations: 0.7012 MB / 353.1 MB, free: 1.086 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002122/0.1376, allocations: 4 kB / 353.1 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002489/0.1379, allocations: 35.69 kB / 353.2 MB, free: 1.047 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002303/0.1381, allocations: 79.38 kB / 353.3 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000384/0.1385, allocations: 99.91 kB / 353.4 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004486/0.139, allocations: 374.4 kB / 353.7 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002965/0.1393, allocations: 115.5 kB / 353.8 MB, free: 396 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001982/0.1395, allocations: 139.4 kB / 354 MB, free: 256 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002384/0.1397, allocations: 167.2 kB / 354.1 MB, free: 88 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.065e-05/0.1398, allocations: 24 kB / 354.2 MB, free: 64 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.708e-05/0.1399, allocations: 20 kB / 354.2 MB, free: 44 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001217/0.14, allocations: 63.69 kB / 354.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001912/0.1402, allocations: 155.2 kB / 354.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004275/0.1406, allocations: 378.9 kB / 354.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.1406, allocations: 0 / 354.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1407, allocations: 0 / 354.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.417e-06/0.1407, allocations: 0 / 354.8 MB, free: 15.46 MB / 302.1 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.001643/0.1423, allocations: 0.6886 MB / 355.4 MB, free: 14.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.675e-05/0.1424, allocations: 16.03 kB / 355.5 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.253e-05/0.1425, allocations: 58.73 kB / 355.5 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001132/0.1426, allocations: 32.56 kB / 355.6 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005235/0.1432, allocations: 291.5 kB / 355.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.669e-05/0.1432, allocations: 16.94 kB / 355.9 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.251e-05/0.1433, allocations: 24.38 kB / 355.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008002/0.1441, allocations: 327.8 kB / 356.2 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.1441, allocations: 0 / 356.2 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.277e-05/0.1441, allocations: 8 kB / 356.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.549e-05/0.1442, allocations: 8 kB / 356.2 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008365/0.145, allocations: 274 kB / 356.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002145/0.1472, allocations: 1.142 MB / 357.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009056/0.1481, allocations: 202.6 kB / 357.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003482/0.1484, allocations: 92.89 kB / 357.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.136e-05/0.1485, allocations: 8 kB / 357.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006793/0.1492, allocations: 152.9 kB / 358.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 3.437e-06/0.1492, allocations: 0 / 358.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001697/0.1509, allocations: 419 kB / 358.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.024e-05/0.151, allocations: 81.09 kB / 358.6 MB, free: 11.38 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004873/0.1515, allocations: 328.5 kB / 358.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.969e-05/0.1516, allocations: 29.7 kB / 358.9 MB, free: 11.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002013/0.1518, allocations: 207.5 kB / 359.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.317e-05/0.1518, allocations: 31.55 kB / 359.1 MB, free: 10.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001195/0.1519, allocations: 53.92 kB / 359.2 MB, free: 10.72 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002245/0.1522, allocations: 338.8 kB / 359.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003598/0.1525, allocations: 100.2 kB / 359.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004036/0.153, allocations: 210.9 kB / 359.8 MB, free: 10.03 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007605/0.1537, allocations: 337.5 kB / 360.2 MB, free: 9.641 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.1537, allocations: 0 / 360.2 MB, free: 9.641 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001108/0.1549, allocations: 415.6 kB / 360.6 MB, free: 9.219 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.674e-05/0.1549, allocations: 37.7 kB / 360.6 MB, free: 9.176 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.155, allocations: 4 kB / 360.6 MB, free: 9.172 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000233/0.1552, allocations: 24.84 kB / 360.6 MB, free: 9.145 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002987/0.1555, allocations: 68.03 kB / 360.7 MB, free: 9.078 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001423/0.1569, allocations: 1.3 MB / 362 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004399/0.1574, allocations: 55.81 kB / 362 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.414e-05/0.1574, allocations: 19.98 kB / 362.1 MB, free: 7.57 MB / 302.1 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 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002978/0.1578, allocations: 146.4 kB / 362.2 MB, free: 7.418 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.935e-05/0.1578, allocations: 27.72 kB / 362.2 MB, free: 7.391 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.227e-05/0.1579, allocations: 30.61 kB / 362.3 MB, free: 7.363 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.1579, allocations: 0 / 362.3 MB, free: 7.363 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.1579, allocations: 4 kB / 362.3 MB, free: 7.359 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.1579, allocations: 0 / 362.3 MB, free: 7.359 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00067/0.1586, allocations: 455 kB / 362.7 MB, free: 6.855 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.1586, allocations: 0 / 362.7 MB, free: 6.855 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00018/0.1588, allocations: 27.97 kB / 362.7 MB, free: 6.828 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001392/0.159, allocations: 32.86 kB / 362.8 MB, free: 6.793 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.023e-05/0.159, allocations: 4 kB / 362.8 MB, free: 6.789 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001202/0.1602, allocations: 1.311 MB / 364.1 MB, free: 5.344 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.1602, allocations: 0 / 364.1 MB, free: 5.344 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000771/0.161, allocations: 270.7 kB / 364.4 MB, free: 5.055 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.626e-05/0.1611, allocations: 104.8 kB / 364.5 MB, free: 4.934 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.252e-05/0.1612, allocations: 4 kB / 364.5 MB, free: 4.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002359/0.1614, allocations: 27.95 kB / 364.5 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001162/0.1615, allocations: 23.92 kB / 364.5 MB, free: 4.879 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.772e-05/0.1615, allocations: 4 kB / 364.5 MB, free: 4.875 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003416/0.1619, allocations: 235 kB / 364.7 MB, free: 4.648 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1619, allocations: 0 / 364.7 MB, free: 4.648 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004277/0.1623, allocations: 71.83 kB / 364.8 MB, free: 4.578 MB / 302.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001257/0.1636, allocations: 0.8049 MB / 365.6 MB, free: 3.734 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001123/0.1647, allocations: 414.1 kB / 366 MB, free: 3.305 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.1648, allocations: 0 / 366 MB, free: 3.305 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004866/0.1653, allocations: 214.6 kB / 366.2 MB, free: 3.082 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000445/0.1657, allocations: 49.77 kB / 366.3 MB, free: 3.035 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2585/0.4242, allocations: 3.243 MB / 369.5 MB, free: 24.96 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004436/0.4247, allocations: 0.7548 MB / 370.3 MB, free: 24.27 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002969/0.425, allocations: 31.59 kB / 370.3 MB, free: 24.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002109/0.4252, allocations: 86.84 kB / 370.4 MB, free: 24.26 MB / 302.1 MB Notification: Performance of SimCode: time 2.054e-06/0.4252, allocations: 0 / 370.4 MB, free: 24.26 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02926/0.4545, allocations: 5.627 MB / 376 MB, free: 23.87 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003404/0.4549, allocations: 225 kB / 376.2 MB, free: 23.62 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.128/2.583, allocations: 0 / 376.2 MB, free: 23.62 MB / 302.1 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/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) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches