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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001035/0.001035, allocations: 102 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001155/0.001155, allocations: 193.1 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.487/1.487, allocations: 227.4 MB / 246 MB, free: 10.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002597/0.0002598, allocations: 8 kB / 306.8 MB, free: 1.199 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1312, allocations: 51.48 MB / 358.3 MB, free: 13.72 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003035/0.1343, allocations: 2.471 MB / 360.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00114/0.1354, allocations: 0.7015 MB / 361.5 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001256/0.1356, allocations: 4 kB / 361.5 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001351/0.1357, allocations: 35.69 kB / 361.5 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001671/0.1359, allocations: 91.36 kB / 361.6 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002528/0.1361, allocations: 67.92 kB / 361.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003671/0.1365, allocations: 362.4 kB / 362 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000211/0.1367, allocations: 106.3 kB / 362.1 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000145/0.1369, allocations: 115.5 kB / 362.3 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001887/0.1371, allocations: 143.4 kB / 362.4 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.368e-05/0.1371, allocations: 20 kB / 362.4 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.09e-05/0.1372, allocations: 16 kB / 362.4 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.9e-05/0.1373, allocations: 59.75 kB / 362.5 MB, free: 9.523 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.062e-05/0.1373, allocations: 81.52 kB / 362.6 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002965/0.1376, allocations: 287.4 kB / 362.8 MB, free: 9.156 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1377, allocations: 0 / 362.8 MB, free: 9.156 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1377, allocations: 4 kB / 362.8 MB, free: 9.152 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.1377, allocations: 4 kB / 362.9 MB, free: 9.148 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.001237/0.1389, allocations: 0.6535 MB / 363.5 MB, free: 8.438 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.139, allocations: 12.03 kB / 363.5 MB, free: 8.426 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.517e-05/0.139, allocations: 62.53 kB / 363.6 MB, free: 8.355 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.496e-05/0.1391, allocations: 35.62 kB / 363.6 MB, free: 8.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003389/0.1395, allocations: 282.4 kB / 363.9 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.156e-05/0.1395, allocations: 16.56 kB / 363.9 MB, free: 7.988 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.948e-05/0.1395, allocations: 24 kB / 363.9 MB, free: 7.965 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006684/0.1402, allocations: 331.6 kB / 364.3 MB, free: 7.629 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.1402, allocations: 4 kB / 364.3 MB, free: 7.625 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.748e-05/0.1403, allocations: 11.94 kB / 364.3 MB, free: 7.613 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.1403, allocations: 8 kB / 364.3 MB, free: 7.605 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007477/0.141, allocations: 306 kB / 364.6 MB, free: 7.305 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001715/0.1428, allocations: 1.165 MB / 365.7 MB, free: 6.047 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007248/0.1435, allocations: 242.5 kB / 366 MB, free: 5.801 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002866/0.1438, allocations: 100.8 kB / 366.1 MB, free: 5.699 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.553e-05/0.1438, allocations: 4 kB / 366.1 MB, free: 5.695 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004205/0.1443, allocations: 176.9 kB / 366.3 MB, free: 5.504 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.332e-06/0.1443, allocations: 0 / 366.3 MB, free: 5.504 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001212/0.1455, allocations: 455.2 kB / 366.7 MB, free: 5.031 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.741e-05/0.1456, allocations: 81.14 kB / 366.8 MB, free: 4.934 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003436/0.1459, allocations: 324.5 kB / 367.1 MB, free: 4.613 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.828e-05/0.1459, allocations: 29.7 kB / 367.1 MB, free: 4.578 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001432/0.1461, allocations: 215.4 kB / 367.3 MB, free: 4.363 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.514e-05/0.1461, allocations: 31.55 kB / 367.4 MB, free: 4.332 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.453e-05/0.1462, allocations: 4 kB / 367.4 MB, free: 4.328 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.1463, allocations: 338.8 kB / 367.7 MB, free: 3.988 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000324/0.1466, allocations: 116.2 kB / 367.8 MB, free: 3.871 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003909/0.147, allocations: 234.9 kB / 368 MB, free: 3.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003485/0.1474, allocations: 153.6 kB / 368.2 MB, free: 3.434 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.1474, allocations: 4 kB / 368.2 MB, free: 3.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008743/0.1483, allocations: 431.6 kB / 368.6 MB, free: 2.992 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.538e-05/0.1483, allocations: 37.69 kB / 368.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/0.1484, allocations: 4 kB / 368.7 MB, free: 2.945 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001676/0.1485, allocations: 33 kB / 368.7 MB, free: 2.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002484/0.1488, allocations: 71.89 kB / 368.8 MB, free: 2.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00104/0.1498, allocations: 1.304 MB / 370.1 MB, free: 1.406 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003122/0.1502, allocations: 67.75 kB / 370.1 MB, free: 1.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.545e-05/0.1502, allocations: 15.98 kB / 370.1 MB, free: 1.324 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 ($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.0001468/0.1503, allocations: 146.8 kB / 370.3 MB, free: 1.172 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.978e-05/0.1504, allocations: 31.66 kB / 370.3 MB, free: 1.141 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.76e-05/0.1504, allocations: 30.61 kB / 370.3 MB, free: 1.109 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-06/0.1505, allocations: 4 kB / 370.4 MB, free: 1.105 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.1505, allocations: 0 / 370.4 MB, free: 1.105 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.1505, allocations: 4 kB / 370.4 MB, free: 1.102 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004315/0.1509, allocations: 459 kB / 370.8 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.1509, allocations: 0 / 370.8 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001633/0.1511, allocations: 36.34 kB / 370.8 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.11e-05/0.1512, allocations: 32.86 kB / 370.9 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.239e-05/0.1512, allocations: 0 / 370.9 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2287/0.3799, allocations: 1.289 MB / 372.2 MB, free: 18.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.3799, allocations: 5.781 kB / 372.2 MB, free: 18.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008755/0.3808, allocations: 298.4 kB / 372.5 MB, free: 18.34 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.842e-05/0.3809, allocations: 108.9 kB / 372.6 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.951e-05/0.381, allocations: 6.297 kB / 372.6 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002352/0.3812, allocations: 33.42 kB / 372.6 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.637e-05/0.3813, allocations: 17.62 kB / 372.6 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.858e-05/0.3813, allocations: 8.375 kB / 372.6 MB, free: 18.24 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003106/0.3817, allocations: 228.6 kB / 372.9 MB, free: 18.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3817, allocations: 0 / 372.9 MB, free: 18.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000437/0.3821, allocations: 72.05 kB / 372.9 MB, free: 18.16 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 (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.001071/0.3832, allocations: 0.8335 MB / 373.8 MB, free: 17.55 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001059/0.3843, allocations: 438.5 kB / 374.2 MB, free: 17.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3843, allocations: 0 / 374.2 MB, free: 17.38 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004583/0.3847, allocations: 232.8 kB / 374.4 MB, free: 17.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003589/0.3851, allocations: 47.25 kB / 374.5 MB, free: 17.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003786/0.3889, allocations: 1.813 MB / 376.3 MB, free: 16.53 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002967/0.3892, allocations: 0.7554 MB / 377 MB, free: 15.83 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001665/0.3894, allocations: 31.66 kB / 377.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002076/0.3896, allocations: 89.16 kB / 377.1 MB, free: 15.81 MB / 302.1 MB Notification: Performance of SimCode: time 6.32e-07/0.3896, allocations: 0 / 377.1 MB, free: 15.81 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02265/0.4123, allocations: 5.443 MB / 382.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002201/0.4125, allocations: 214.2 kB / 382.8 MB, free: 15.12 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.951/2.364, allocations: 0 / 382.8 MB, free: 15.12 MB / 302.1 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