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.0009453/0.0009452, allocations: 93.92 kB / 16.93 MB, free: 5.984 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.000885/0.0008851, allocations: 178.7 kB / 17.82 MB, free: 5.652 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.472/1.472, allocations: 205.4 MB / 224 MB, free: 13.16 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.0005886/0.0005887, allocations: 12 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1016, allocations: 47.57 MB / 328.4 MB, free: 3.988 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.002706/0.1043, allocations: 2.319 MB / 330.8 MB, free: 1.652 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0011/0.1055, allocations: 0.722 MB / 331.5 MB, free: 0.9219 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001385/0.1057, allocations: 4 kB / 331.5 MB, free: 0.918 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 6.391e-05/0.1057, allocations: 35.69 kB / 331.5 MB, free: 0.8828 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002205/0.106, allocations: 107.7 kB / 331.6 MB, free: 0.7773 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002342/0.1062, allocations: 71.8 kB / 331.7 MB, free: 0.707 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002896/0.1065, allocations: 251.5 kB / 331.9 MB, free: 472 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001727/0.1067, allocations: 98.31 kB / 332 MB, free: 376 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001336/0.1068, allocations: 123.5 kB / 332.2 MB, free: 252 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001721/0.107, allocations: 143.4 kB / 332.3 MB, free: 108 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.94e-05/0.107, allocations: 20 kB / 332.3 MB, free: 88 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.05e-05/0.1071, allocations: 20 kB / 332.3 MB, free: 68 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.106e-05/0.1072, allocations: 59.75 kB / 332.4 MB, free: 8 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.745e-05/0.1072, allocations: 81.56 kB / 332.5 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002641/0.1075, allocations: 295.4 kB / 332.8 MB, free: 15.63 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.175e-06/0.1075, allocations: 0 / 332.8 MB, free: 15.63 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1075, allocations: 0 / 332.8 MB, free: 15.63 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.93e-06/0.1075, allocations: 0 / 332.8 MB, free: 15.63 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.001144/0.1087, allocations: 0.6573 MB / 333.4 MB, free: 14.92 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.23e-05/0.1087, allocations: 8.031 kB / 333.4 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.084e-05/0.1088, allocations: 62.48 kB / 333.5 MB, free: 14.84 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.202e-05/0.1089, allocations: 35.62 kB / 333.5 MB, free: 14.8 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003306/0.1092, allocations: 286.4 kB / 333.8 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.965e-05/0.1092, allocations: 20.56 kB / 333.8 MB, free: 14.46 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.884e-05/0.1093, allocations: 24 kB / 333.8 MB, free: 14.44 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006484/0.1099, allocations: 296.8 kB / 334.1 MB, free: 14.14 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.11, allocations: 0 / 334.1 MB, free: 14.14 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.891e-05/0.11, allocations: 15.92 kB / 334.1 MB, free: 14.12 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.11, allocations: 8 kB / 334.2 MB, free: 14.12 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008154/0.1108, allocations: 322 kB / 334.5 MB, free: 13.8 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001752/0.1126, allocations: 1.079 MB / 335.5 MB, free: 12.64 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007763/0.1134, allocations: 238.6 kB / 335.8 MB, free: 12.39 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.804e-05/0.1134, allocations: 0 / 335.8 MB, free: 12.39 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004831/0.1139, allocations: 173.1 kB / 336 MB, free: 12.21 MB / 286.1 MB Notification: Performance of pre-optimization done (n=11): time 1.503e-06/0.1139, allocations: 0 / 336 MB, free: 12.21 MB / 286.1 MB Notification: Performance of matching and sorting (n=11): time 0.001208/0.1151, allocations: 451.1 kB / 336.4 MB, free: 11.74 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.532e-05/0.1152, allocations: 81.05 kB / 336.5 MB, free: 11.64 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003611/0.1156, allocations: 320.5 kB / 336.8 MB, free: 11.32 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.594e-05/0.1156, allocations: 33.64 kB / 336.8 MB, free: 11.28 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001463/0.1158, allocations: 207.5 kB / 337 MB, free: 11.07 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.957e-05/0.1158, allocations: 35.47 kB / 337.1 MB, free: 11.04 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.362e-05/0.1158, allocations: 4 kB / 337.1 MB, free: 11.04 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.116, allocations: 346.8 kB / 337.4 MB, free: 10.69 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003021/0.1163, allocations: 108.2 kB / 337.5 MB, free: 10.58 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003727/0.1167, allocations: 214.1 kB / 337.7 MB, free: 10.32 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003291/0.117, allocations: 149.6 kB / 337.9 MB, free: 10.17 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.92e-06/0.117, allocations: 4 kB / 337.9 MB, free: 10.17 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009107/0.1179, allocations: 415.7 kB / 338.3 MB, free: 9.746 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006042/0.1185, allocations: 1.416 MB / 339.7 MB, free: 8.215 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.265e-05/0.1186, allocations: 7.953 kB / 339.7 MB, free: 8.207 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001779/0.1188, allocations: 36.83 kB / 339.7 MB, free: 8.168 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000254/0.119, allocations: 67.89 kB / 339.8 MB, free: 8.102 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001087/0.1201, allocations: 1.308 MB / 341.1 MB, free: 6.664 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003529/0.1205, allocations: 59.91 kB / 341.2 MB, free: 6.605 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.511e-05/0.1205, allocations: 19.94 kB / 341.2 MB, free: 6.586 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.286e-06/0.1206, allocations: 4 kB / 341.2 MB, free: 6.582 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007699/0.1213, allocations: 338.4 kB / 341.5 MB, free: 6.242 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.209e-06/0.1214, allocations: 7.938 kB / 341.5 MB, free: 6.234 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.39e-05/0.1214, allocations: 28.84 kB / 341.5 MB, free: 6.203 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002241/0.1217, allocations: 56.03 kB / 341.6 MB, free: 6.148 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009245/0.1226, allocations: 1.299 MB / 342.9 MB, free: 4.715 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002911/0.1229, allocations: 55.91 kB / 343 MB, free: 4.66 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.969e-05/0.1229, allocations: 12 kB / 343 MB, free: 4.648 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 ($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.0001904/0.1231, allocations: 217.1 kB / 343.2 MB, free: 4.426 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.611e-05/0.1232, allocations: 23.72 kB / 343.2 MB, free: 4.402 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.777e-05/0.1233, allocations: 29.89 kB / 343.2 MB, free: 4.371 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.1233, allocations: 8 kB / 343.2 MB, free: 4.363 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.1233, allocations: 3.953 kB / 343.2 MB, free: 4.359 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.992e-06/0.1233, allocations: 7.969 kB / 343.3 MB, free: 4.352 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004633/0.1238, allocations: 451.5 kB / 343.7 MB, free: 3.852 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.1238, allocations: 0 / 343.7 MB, free: 3.852 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001611/0.1239, allocations: 43.98 kB / 343.7 MB, free: 3.809 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000101/0.124, allocations: 28.84 kB / 343.8 MB, free: 3.777 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.631e-05/0.1241, allocations: 11.89 kB / 343.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009361/0.125, allocations: 1.304 MB / 345.1 MB, free: 2.328 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.125, allocations: 0 / 345.1 MB, free: 2.328 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007745/0.1258, allocations: 312.2 kB / 345.4 MB, free: 1.992 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.172e-05/0.1259, allocations: 100.8 kB / 345.5 MB, free: 1.875 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.861e-05/0.126, allocations: 4 kB / 345.5 MB, free: 1.871 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002191/0.1262, allocations: 39.97 kB / 345.5 MB, free: 1.832 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.362e-05/0.1263, allocations: 19.97 kB / 345.5 MB, free: 1.812 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.878e-06/0.1263, allocations: 0 / 345.5 MB, free: 1.812 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002308/0.1265, allocations: 227.1 kB / 345.8 MB, free: 1.594 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1265, allocations: 0 / 345.8 MB, free: 1.594 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005598/0.1271, allocations: 123.7 kB / 345.9 MB, free: 1.473 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 (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.001044/0.1281, allocations: 0.9224 MB / 346.8 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.00152/0.1297, allocations: 0.7358 MB / 347.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.1297, allocations: 4.062 kB / 347.6 MB, free: 15.72 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004485/0.1301, allocations: 234.5 kB / 347.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003027/0.1305, allocations: 36.64 kB / 347.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00415/0.1346, allocations: 4.038 MB / 351.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003666/0.135, allocations: 0.7638 MB / 352.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001825/0.1352, allocations: 46.94 kB / 352.7 MB, free: 10.44 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001276/0.1353, allocations: 83.41 kB / 352.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of SimCode: time 8.92e-07/0.1353, allocations: 0 / 352.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01879/0.1541, allocations: 5.782 MB / 358.5 MB, free: 4.59 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002433/0.1544, allocations: 207.5 kB / 358.7 MB, free: 4.348 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.837/1.991, allocations: 0 / 358.7 MB, free: 4.348 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/linux/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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat does not exist to compare? outputFormat=mat