Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_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 3.2.3+maint.om/package.mo): time 0.001135/0.001135, allocations: 174.7 kB / 16.72 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.499/1.499, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007752/0.0007753, allocations: 89.36 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003469/0.000347, allocations: 15.98 kB / 327.6 MB, free: 15.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2232/0.2235, allocations: 47.57 MB / 375.2 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003036/0.2266, allocations: 2.42 MB / 377.6 MB, free: 43.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001023/0.2277, allocations: 0.7088 MB / 378.3 MB, free: 42.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001337/0.2278, allocations: 4.594 kB / 378.3 MB, free: 42.95 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001355/0.228, allocations: 37.25 kB / 378.4 MB, free: 42.92 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001585/0.2281, allocations: 84.59 kB / 378.5 MB, free: 42.85 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002428/0.2284, allocations: 72.31 kB / 378.5 MB, free: 42.79 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003197/0.2287, allocations: 359.6 kB / 378.9 MB, free: 42.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002184/0.2289, allocations: 117.2 kB / 379 MB, free: 42.5 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000146/0.2291, allocations: 123.6 kB / 379.1 MB, free: 42.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001996/0.2293, allocations: 152.4 kB / 379.3 MB, free: 42.33 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.826e-05/0.2293, allocations: 18.66 kB / 379.3 MB, free: 42.33 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.039e-05/0.2294, allocations: 19.56 kB / 379.3 MB, free: 42.33 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.349e-05/0.2295, allocations: 55.14 kB / 379.4 MB, free: 42.28 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001419/0.2296, allocations: 169.8 kB / 379.5 MB, free: 42.15 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002539/0.2299, allocations: 302.4 kB / 379.8 MB, free: 41.92 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.78e-06/0.2299, allocations: 1.188 kB / 379.8 MB, free: 41.92 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.2299, allocations: 0 / 379.8 MB, free: 41.92 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.651e-06/0.2299, allocations: 0 / 379.8 MB, free: 41.92 MB / 298.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.00115/0.2311, allocations: 0.6487 MB / 380.5 MB, free: 41.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.2311, allocations: 9.219 kB / 380.5 MB, free: 41.36 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.955e-05/0.2312, allocations: 58.67 kB / 380.5 MB, free: 41.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.247e-05/0.2312, allocations: 33.66 kB / 380.6 MB, free: 41.29 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002897/0.2315, allocations: 299 kB / 380.9 MB, free: 40.99 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.349e-05/0.2316, allocations: 19.81 kB / 380.9 MB, free: 40.98 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.098e-05/0.2316, allocations: 24.5 kB / 380.9 MB, free: 40.97 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006614/0.2323, allocations: 304.7 kB / 381.2 MB, free: 40.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.2323, allocations: 0 / 381.2 MB, free: 40.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.709e-05/0.2323, allocations: 10.28 kB / 381.2 MB, free: 40.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.826e-06/0.2324, allocations: 5.469 kB / 381.2 MB, free: 40.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008016/0.2332, allocations: 324.5 kB / 381.5 MB, free: 40.65 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00157/0.2347, allocations: 1.072 MB / 382.6 MB, free: 39.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007519/0.2355, allocations: 239.3 kB / 382.8 MB, free: 39.63 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002907/0.2358, allocations: 98.02 kB / 382.9 MB, free: 39.59 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.608e-05/0.2358, allocations: 9.391 kB / 382.9 MB, free: 39.58 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004448/0.2363, allocations: 164.2 kB / 383.1 MB, free: 39.46 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 2.014e-06/0.2363, allocations: 0 / 383.1 MB, free: 39.46 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.001253/0.2376, allocations: 446.6 kB / 383.5 MB, free: 39.19 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.834e-05/0.2376, allocations: 80.27 kB / 383.6 MB, free: 39.1 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003373/0.238, allocations: 325.7 kB / 383.9 MB, free: 38.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.767e-05/0.238, allocations: 26.73 kB / 384 MB, free: 38.85 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.451e-05/0.2381, allocations: 209.6 kB / 384.2 MB, free: 38.66 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.699e-05/0.2381, allocations: 36.98 kB / 384.2 MB, free: 38.62 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.585e-05/0.2381, allocations: 5.969 kB / 384.2 MB, free: 38.62 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.836e-05/0.2382, allocations: 336.6 kB / 384.5 MB, free: 38.29 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003092/0.2385, allocations: 111.8 kB / 384.6 MB, free: 38.24 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003359/0.2389, allocations: 219.4 kB / 384.9 MB, free: 38.05 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006202/0.2395, allocations: 340 kB / 385.2 MB, free: 37.79 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.2395, allocations: 4.938 kB / 385.2 MB, free: 37.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009016/0.2404, allocations: 417.1 kB / 385.6 MB, free: 37.56 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001106/0.2405, allocations: 222.8 kB / 385.8 MB, free: 37.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.062e-05/0.2406, allocations: 7.812 kB / 385.8 MB, free: 37.29 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001864/0.2408, allocations: 41 kB / 385.9 MB, free: 37.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002594/0.241, allocations: 65.27 kB / 385.9 MB, free: 37.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007877/0.2418, allocations: 1.307 MB / 387.2 MB, free: 35.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003346/0.2422, allocations: 60.72 kB / 387.3 MB, free: 35.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.712e-05/0.2422, allocations: 14.72 kB / 387.3 MB, free: 35.86 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.681e-06/0.2422, allocations: 2.938 kB / 387.3 MB, free: 35.86 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006794/0.2429, allocations: 348 kB / 387.7 MB, free: 35.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.108e-06/0.2429, allocations: 4 kB / 387.7 MB, free: 35.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.821e-05/0.243, allocations: 24.84 kB / 387.7 MB, free: 35.58 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001991/0.2432, allocations: 63.89 kB / 387.7 MB, free: 35.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005461/0.2437, allocations: 1.284 MB / 389 MB, free: 34.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002571/0.244, allocations: 51.88 kB / 389.1 MB, free: 34.04 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.749e-05/0.244, allocations: 12 kB / 389.1 MB, free: 34.03 MB / 298.7 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.0001359/0.2442, allocations: 229.9 kB / 389.3 MB, free: 33.8 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.236e-05/0.2442, allocations: 23.72 kB / 389.3 MB, free: 33.77 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.046e-05/0.2443, allocations: 25.89 kB / 389.4 MB, free: 33.75 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.2443, allocations: 3.938 kB / 389.4 MB, free: 33.74 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.2443, allocations: 3.984 kB / 389.4 MB, free: 33.74 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.2443, allocations: 4 kB / 389.4 MB, free: 33.73 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003294/0.2446, allocations: 455.1 kB / 389.8 MB, free: 33.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.2446, allocations: 8 kB / 389.8 MB, free: 33.22 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001491/0.2448, allocations: 39.89 kB / 389.9 MB, free: 33.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.361e-05/0.2449, allocations: 28.88 kB / 389.9 MB, free: 33.15 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.264e-05/0.2449, allocations: 0 / 389.9 MB, free: 33.15 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005958/0.2455, allocations: 1.3 MB / 391.2 MB, free: 31.72 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.2455, allocations: 4.031 kB / 391.2 MB, free: 31.71 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005863/0.2461, allocations: 294.3 kB / 391.5 MB, free: 31.4 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.315e-05/0.2462, allocations: 108.8 kB / 391.6 MB, free: 31.28 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.381e-05/0.2462, allocations: 4 kB / 391.6 MB, free: 31.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002037/0.2464, allocations: 27.97 kB / 391.6 MB, free: 31.25 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.503e-05/0.2465, allocations: 23.97 kB / 391.6 MB, free: 31.22 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.256e-05/0.2465, allocations: 11.94 kB / 391.7 MB, free: 31.21 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001682/0.2467, allocations: 223.1 kB / 391.9 MB, free: 31 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2467, allocations: 3.938 kB / 391.9 MB, free: 30.99 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004472/0.2472, allocations: 123.8 kB / 392 MB, free: 30.87 MB / 298.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 (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.0007846/0.248, allocations: 0.8323 MB / 392.8 MB, free: 30 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001136/0.2491, allocations: 0.7387 MB / 393.6 MB, free: 29.22 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.2491, allocations: 0 / 393.6 MB, free: 29.22 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004058/0.2495, allocations: 227.3 kB / 393.8 MB, free: 28.98 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003334/0.2499, allocations: 52.55 kB / 393.8 MB, free: 28.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002465/0.2523, allocations: 1.805 MB / 395.6 MB, free: 27.03 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001593/0.2525, allocations: 0.7561 MB / 396.4 MB, free: 26.25 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001301/0.2527, allocations: 87.41 kB / 396.5 MB, free: 26.16 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2527, allocations: 0 / 396.5 MB, free: 26.16 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.037/3.29, allocations: 5.305 MB / 401.8 MB, free: 20.85 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Comparator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches