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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001853/0.001853, allocations: 107.1 kB / 20.44 MB, free: 1.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001433/0.001433, allocations: 202 kB / 23.72 MB, free: 4.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 230.5 MB / 257.4 MB, free: 7.711 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002095/0.002095, allocations: 59.89 kB / 377.8 MB, free: 2.773 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.23/0.2321, allocations: 53.4 MB / 431.2 MB, free: 6.434 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.00444/0.2365, allocations: 2.741 MB / 433.9 MB, free: 3.684 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001428/0.238, allocations: 0.6894 MB / 434.6 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001575/0.2381, allocations: 7.938 kB / 434.6 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000162/0.2383, allocations: 47.5 kB / 434.7 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002116/0.2385, allocations: 111.1 kB / 434.8 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002742/0.2388, allocations: 99.81 kB / 434.9 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004215/0.2392, allocations: 386.5 kB / 435.2 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002161/0.2394, allocations: 98.09 kB / 435.3 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001808/0.2396, allocations: 155.4 kB / 435.5 MB, free: 2.102 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002063/0.2398, allocations: 147.3 kB / 435.6 MB, free: 1.957 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.943e-05/0.2399, allocations: 39.94 kB / 435.7 MB, free: 1.918 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.458e-05/0.2399, allocations: 36 kB / 435.7 MB, free: 1.883 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.498e-05/0.24, allocations: 75.75 kB / 435.8 MB, free: 1.809 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001607/0.2402, allocations: 151.3 kB / 435.9 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004926/0.2407, allocations: 414.3 kB / 436.3 MB, free: 1.254 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.2407, allocations: 0 / 436.3 MB, free: 1.254 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2407, allocations: 0 / 436.3 MB, free: 1.254 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.175e-05/0.2407, allocations: 0 / 436.3 MB, free: 1.254 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001235/0.2419, allocations: 0.6014 MB / 436.9 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.2419, allocations: 12.03 kB / 436.9 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.64e-05/0.242, allocations: 62.72 kB / 437 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.048e-05/0.2421, allocations: 32.75 kB / 437 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004301/0.2425, allocations: 243 kB / 437.3 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.358e-05/0.2425, allocations: 21.03 kB / 437.3 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.489e-05/0.2426, allocations: 24.38 kB / 437.3 MB, free: 192 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006232/0.2432, allocations: 315.9 kB / 437.6 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.2432, allocations: 3.984 kB / 437.6 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.886e-05/0.2432, allocations: 11.98 kB / 437.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.2433, allocations: 8 kB / 437.7 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006512/0.2439, allocations: 246.5 kB / 437.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001728/0.2456, allocations: 0.9516 MB / 438.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005877/0.2462, allocations: 170.5 kB / 439 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002458/0.2465, allocations: 76.8 kB / 439.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.526e-05/0.2465, allocations: 4 kB / 439.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003941/0.2469, allocations: 182.7 kB / 439.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.363e-06/0.2469, allocations: 0 / 439.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.001048/0.2479, allocations: 306.3 kB / 439.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.173e-05/0.248, allocations: 110.8 kB / 439.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004017/0.2484, allocations: 336.4 kB / 440 MB, free: 13.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.885e-05/0.2485, allocations: 29.7 kB / 440 MB, free: 13.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001661/0.2486, allocations: 220 kB / 440.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.882e-05/0.2487, allocations: 43.69 kB / 440.3 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.2488, allocations: 53.7 kB / 440.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001735/0.2489, allocations: 342.8 kB / 440.7 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003005/0.2492, allocations: 113.6 kB / 440.8 MB, free: 12.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003881/0.2496, allocations: 262.8 kB / 441 MB, free: 12.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006108/0.2502, allocations: 312 kB / 441.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.2502, allocations: 4 kB / 441.4 MB, free: 11.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0008634/0.2511, allocations: 413.5 kB / 441.8 MB, free: 11.4 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.187e-05/0.2511, allocations: 41.69 kB / 441.8 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/0.2512, allocations: 4 kB / 441.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001646/0.2513, allocations: 24.84 kB / 441.8 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000244/0.2516, allocations: 63.89 kB / 441.9 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001188/0.2528, allocations: 1.291 MB / 443.2 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003154/0.2531, allocations: 55.7 kB / 443.2 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.779e-05/0.2531, allocations: 19.98 kB / 443.3 MB, free: 9.777 MB / 350.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: 7 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,opAmp.satNeg,opAmp.satPos,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 28 * 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.0001719/0.2533, allocations: 152.6 kB / 443.4 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.777e-05/0.2533, allocations: 39.8 kB / 443.4 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.645e-05/0.2534, allocations: 34.61 kB / 443.5 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.2534, allocations: 0 / 443.5 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.2534, allocations: 3.938 kB / 443.5 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.2534, allocations: 4 kB / 443.5 MB, free: 9.539 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000466/0.2538, allocations: 394.4 kB / 443.9 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2539, allocations: 0 / 443.9 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001447/0.254, allocations: 23.97 kB / 443.9 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001081/0.2541, allocations: 36.75 kB / 443.9 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.493e-05/0.2541, allocations: 7.938 kB / 443.9 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001058/0.2552, allocations: 1.275 MB / 445.2 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2552, allocations: 3.938 kB / 445.2 MB, free: 7.641 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006244/0.2558, allocations: 254.7 kB / 445.5 MB, free: 7.367 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.208e-05/0.2559, allocations: 35.73 kB / 445.5 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.969e-05/0.2559, allocations: 4 kB / 445.5 MB, free: 7.328 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002124/0.2561, allocations: 23.97 kB / 445.5 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.581e-05/0.2562, allocations: 23.91 kB / 445.5 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.579e-05/0.2562, allocations: 11.92 kB / 445.6 MB, free: 7.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002575/0.2565, allocations: 239.1 kB / 445.8 MB, free: 7.035 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2565, allocations: 0 / 445.8 MB, free: 7.035 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003343/0.2568, allocations: 71.89 kB / 445.9 MB, free: 6.965 MB / 350.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: 5 ($whenCondition1,opAmp.satPos,opAmp.satNeg,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 (12): * Single equations (assignments): 9 * 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.0009523/0.2578, allocations: 0.7971 MB / 446.7 MB, free: 6.133 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000867/0.2586, allocations: 419.1 kB / 447.1 MB, free: 5.695 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.2586, allocations: 0 / 447.1 MB, free: 5.695 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000412/0.259, allocations: 202.8 kB / 447.3 MB, free: 5.484 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003245/0.2594, allocations: 53 kB / 447.3 MB, free: 5.434 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004685/0.2641, allocations: 3.242 MB / 450.6 MB, free: 1.973 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00014/0.2642, allocations: 147.8 kB / 450.7 MB, free: 1.809 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001277/0.2643, allocations: 34.97 kB / 450.7 MB, free: 1.773 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001482/0.2645, allocations: 99.39 kB / 450.8 MB, free: 1.68 MB / 350.1 MB Notification: Performance of SimCode: time 5.51e-07/0.2645, allocations: 0 / 450.8 MB, free: 1.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03627/0.3007, allocations: 7.246 MB / 458.1 MB, free: 10.58 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/11.71, allocations: 12 kB / 458.1 MB, free: 10.57 MB / 366.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_Comparator.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable opAmp.out.v in file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv. Warning: Get data of variable opAmp.out.v from file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv failed! Error: Could not read variable opAmp.out.i in file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv. Warning: Get data of variable opAmp.out.i from file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.117667749058455]