Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_Comparator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_3_2_3_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.001063/0.001063, allocations: 96.62 kB / 17.3 MB, free: 6.391 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.001546/0.001546, allocations: 176.4 kB / 18.21 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.615/1.615, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004873/0.0004873, allocations: 16 kB / 281.5 MB, free: 3.309 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09757/0.09807, allocations: 47.57 MB / 329.1 MB, free: 3.66 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.002848/0.101, allocations: 2.523 MB / 331.6 MB, free: 1.117 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001164/0.1022, allocations: 0.7372 MB / 332.3 MB, free: 380 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001237/0.1023, allocations: 8 kB / 332.3 MB, free: 372 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000155/0.1025, allocations: 35.7 kB / 332.4 MB, free: 336 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001792/0.1026, allocations: 83.31 kB / 332.4 MB, free: 252 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002522/0.1029, allocations: 87.92 kB / 332.5 MB, free: 164 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003361/0.1032, allocations: 374.4 kB / 332.9 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002172/0.1035, allocations: 115.5 kB / 333 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001539/0.1036, allocations: 127.4 kB / 333.1 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002003/0.1038, allocations: 151.3 kB / 333.3 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.605e-05/0.1039, allocations: 20 kB / 333.3 MB, free: 15.39 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.003e-05/0.104, allocations: 27.88 kB / 333.3 MB, free: 15.36 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.559e-05/0.104, allocations: 55.75 kB / 333.4 MB, free: 15.3 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001589/0.1042, allocations: 172.8 kB / 333.6 MB, free: 15.13 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003454/0.1045, allocations: 374.8 kB / 333.9 MB, free: 14.76 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1045, allocations: 0 / 333.9 MB, free: 14.76 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1045, allocations: 0 / 333.9 MB, free: 14.76 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.523e-06/0.1046, allocations: 0 / 333.9 MB, free: 14.76 MB / 286.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.001205/0.1058, allocations: 0.6498 MB / 334.6 MB, free: 14.05 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.1058, allocations: 11.97 kB / 334.6 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.159e-05/0.1059, allocations: 62.72 kB / 334.6 MB, free: 13.97 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.938e-05/0.106, allocations: 32.56 kB / 334.7 MB, free: 13.94 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003349/0.1063, allocations: 287.6 kB / 335 MB, free: 13.62 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.984e-05/0.1064, allocations: 20.94 kB / 335 MB, free: 13.6 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.57e-05/0.1064, allocations: 24.38 kB / 335 MB, free: 13.58 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000669/0.1071, allocations: 308.9 kB / 335.3 MB, free: 13.27 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.1071, allocations: 0 / 335.3 MB, free: 13.27 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.153e-05/0.1071, allocations: 12 kB / 335.3 MB, free: 13.26 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/0.1072, allocations: 12 kB / 335.3 MB, free: 13.25 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008201/0.108, allocations: 314 kB / 335.6 MB, free: 12.94 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001725/0.1097, allocations: 1.087 MB / 336.7 MB, free: 11.77 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007208/0.1105, allocations: 234.5 kB / 336.9 MB, free: 11.53 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002809/0.1108, allocations: 100.8 kB / 337 MB, free: 11.43 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.293e-05/0.1108, allocations: 4 kB / 337.1 MB, free: 11.42 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004272/0.1112, allocations: 169 kB / 337.2 MB, free: 11.24 MB / 286.1 MB Notification: Performance of pre-optimization done (n=11): time 1.273e-06/0.1112, allocations: 0 / 337.2 MB, free: 11.24 MB / 286.1 MB Notification: Performance of matching and sorting (n=11): time 0.001208/0.1124, allocations: 455 kB / 337.7 MB, free: 10.77 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.753e-05/0.1125, allocations: 77.11 kB / 337.7 MB, free: 10.67 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003808/0.1129, allocations: 324.5 kB / 338.1 MB, free: 10.34 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.89e-05/0.1129, allocations: 29.7 kB / 338.1 MB, free: 10.31 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001687/0.1131, allocations: 203.5 kB / 338.3 MB, free: 10.11 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.924e-05/0.1132, allocations: 39.55 kB / 338.3 MB, free: 10.07 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.562e-05/0.1132, allocations: 26.08 kB / 338.3 MB, free: 10.04 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.1134, allocations: 338.8 kB / 338.7 MB, free: 9.695 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003167/0.1137, allocations: 108.2 kB / 338.8 MB, free: 9.59 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003745/0.1141, allocations: 222.1 kB / 339 MB, free: 9.324 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006682/0.1147, allocations: 355 kB / 339.3 MB, free: 8.922 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.1148, allocations: 0 / 339.3 MB, free: 8.922 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008686/0.1156, allocations: 431.7 kB / 339.8 MB, free: 8.484 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001337/0.1158, allocations: 219.6 kB / 340 MB, free: 8.211 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.086e-06/0.1158, allocations: 4 kB / 340 MB, free: 8.207 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000171/0.116, allocations: 36.83 kB / 340 MB, free: 8.168 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000251/0.1162, allocations: 63.89 kB / 340.1 MB, free: 8.105 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00107/0.1173, allocations: 1.304 MB / 341.4 MB, free: 6.672 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003132/0.1176, allocations: 59.81 kB / 341.4 MB, free: 6.613 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.654e-05/0.1177, allocations: 19.92 kB / 341.5 MB, free: 6.594 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.823e-06/0.1177, allocations: 4 kB / 341.5 MB, free: 6.59 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007295/0.1184, allocations: 342.4 kB / 341.8 MB, free: 6.246 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.136e-06/0.1184, allocations: 4 kB / 341.8 MB, free: 6.242 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.284e-05/0.1185, allocations: 28.78 kB / 341.8 MB, free: 6.211 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002171/0.1187, allocations: 64.02 kB / 341.9 MB, free: 6.148 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008079/0.1196, allocations: 1.295 MB / 343.2 MB, free: 4.715 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002579/0.1198, allocations: 43.92 kB / 343.2 MB, free: 4.672 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.23e-05/0.1199, allocations: 16 kB / 343.3 MB, free: 4.656 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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.0001585/0.12, allocations: 221 kB / 343.5 MB, free: 4.43 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.678e-05/0.1201, allocations: 27.62 kB / 343.5 MB, free: 4.402 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.839e-05/0.1201, allocations: 29.89 kB / 343.5 MB, free: 4.371 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.1201, allocations: 7.938 kB / 343.5 MB, free: 4.363 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.1201, allocations: 0 / 343.5 MB, free: 4.363 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.1201, allocations: 4 kB / 343.5 MB, free: 4.359 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003997/0.1206, allocations: 455.2 kB / 344 MB, free: 3.855 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.1206, allocations: 0 / 344 MB, free: 3.855 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001638/0.1207, allocations: 43.88 kB / 344 MB, free: 3.812 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.465e-05/0.1208, allocations: 24.84 kB / 344 MB, free: 3.785 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.813e-05/0.1209, allocations: 11.98 kB / 344.1 MB, free: 3.773 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008824/0.1217, allocations: 1.296 MB / 345.4 MB, free: 2.344 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1218, allocations: 0 / 345.4 MB, free: 2.344 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006754/0.1224, allocations: 298.4 kB / 345.6 MB, free: 2.027 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.288e-05/0.1225, allocations: 104.7 kB / 345.7 MB, free: 1.906 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.431e-05/0.1226, allocations: 11.92 kB / 345.8 MB, free: 1.895 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002151/0.1228, allocations: 35.97 kB / 345.8 MB, free: 1.859 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.898e-05/0.1229, allocations: 15.98 kB / 345.8 MB, free: 1.844 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.273e-05/0.1229, allocations: 7.938 kB / 345.8 MB, free: 1.836 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002085/0.1231, allocations: 227.1 kB / 346 MB, free: 1.617 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1231, allocations: 0 / 346 MB, free: 1.617 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004599/0.1236, allocations: 123.8 kB / 346.2 MB, free: 1.496 MB / 286.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 (10): * Single equations (assignments): 7 * 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.0009771/0.1245, allocations: 0.8362 MB / 347 MB, free: 0.625 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001355/0.1259, allocations: 0.7317 MB / 347.7 MB, free: 15.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1259, allocations: 0.6875 kB / 347.7 MB, free: 15.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000439/0.1264, allocations: 230.6 kB / 348 MB, free: 15.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003438/0.1267, allocations: 48.84 kB / 348 MB, free: 15.56 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004466/0.1312, allocations: 3.319 MB / 351.3 MB, free: 12.05 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002992/0.1315, allocations: 0.7522 MB / 352.1 MB, free: 11.27 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001633/0.1317, allocations: 38.97 kB / 352.1 MB, free: 11.23 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001427/0.1318, allocations: 91.39 kB / 352.2 MB, free: 11.14 MB / 302.1 MB Notification: Performance of SimCode: time 1.653e-06/0.1318, allocations: 0 / 352.2 MB, free: 11.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01623/0.1481, allocations: 5.886 MB / 358.1 MB, free: 5.258 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001982/0.1483, allocations: 232.7 kB / 358.3 MB, free: 4.996 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.936/2.084, allocations: 3.938 kB / 358.3 MB, free: 4.992 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_Comparator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches