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.001317/0.001317, allocations: 114 kB / 20.43 MB, free: 1.457 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.001481/0.001481, allocations: 214.4 kB / 23.74 MB, free: 4.672 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.433/1.433, allocations: 230.5 MB / 257.4 MB, free: 7.977 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.002053/0.002053, allocations: 59.91 kB / 377.8 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2863/0.2883, allocations: 53.41 MB / 431.2 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004646/0.293, allocations: 2.951 MB / 434.2 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001613/0.2946, allocations: 0.7322 MB / 434.9 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002742/0.2949, allocations: 11.94 kB / 434.9 MB, free: 2.953 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002248/0.2951, allocations: 51.5 kB / 435 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003213/0.2954, allocations: 103.2 kB / 435.1 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003294/0.2957, allocations: 95.83 kB / 435.2 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006087/0.2963, allocations: 394.3 kB / 435.5 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002372/0.2966, allocations: 100.5 kB / 435.6 MB, free: 2.223 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002829/0.2969, allocations: 159.4 kB / 435.8 MB, free: 2.066 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002697/0.2971, allocations: 175.2 kB / 436 MB, free: 1.895 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.749e-05/0.2972, allocations: 36 kB / 436 MB, free: 1.859 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.57e-05/0.2973, allocations: 40 kB / 436 MB, free: 1.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.584e-05/0.2973, allocations: 75.69 kB / 436.1 MB, free: 1.746 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002002/0.2975, allocations: 175.1 kB / 436.3 MB, free: 1.574 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005158/0.2981, allocations: 398.8 kB / 436.7 MB, free: 1.188 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.2981, allocations: 4 kB / 436.7 MB, free: 1.184 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2981, allocations: 0 / 436.7 MB, free: 1.184 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.633e-05/0.2981, allocations: 0 / 436.7 MB, free: 1.184 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.001432/0.2995, allocations: 0.6092 MB / 437.3 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.2996, allocations: 8.031 kB / 437.3 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.039e-05/0.2996, allocations: 58.73 kB / 437.4 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.252e-05/0.2997, allocations: 40.75 kB / 437.4 MB, free: 428 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000504/0.3002, allocations: 247 kB / 437.6 MB, free: 152 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.643e-05/0.3003, allocations: 17.03 kB / 437.7 MB, free: 136 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.481e-05/0.3003, allocations: 28.38 kB / 437.7 MB, free: 108 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006753/0.301, allocations: 278.2 kB / 438 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.301, allocations: 0 / 438 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.378e-05/0.301, allocations: 16 kB / 438 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.301, allocations: 4 kB / 438 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007018/0.3017, allocations: 258.4 kB / 438.2 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002058/0.3038, allocations: 1.022 MB / 439.2 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006003/0.3044, allocations: 174.6 kB / 439.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002455/0.3046, allocations: 72.8 kB / 439.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.857e-05/0.3047, allocations: 0 / 439.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003967/0.3051, allocations: 158 kB / 439.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.613e-06/0.3051, allocations: 0 / 439.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=13): time 0.001075/0.3061, allocations: 314 kB / 440 MB, free: 13.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.94e-05/0.3062, allocations: 106.8 kB / 440.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003893/0.3066, allocations: 336.4 kB / 440.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.878e-05/0.3066, allocations: 25.7 kB / 440.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001715/0.3068, allocations: 216 kB / 440.6 MB, free: 13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.899e-05/0.3068, allocations: 39.72 kB / 440.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.307, allocations: 61.66 kB / 440.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.3071, allocations: 338.8 kB / 441.1 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002717/0.3074, allocations: 87.94 kB / 441.1 MB, free: 12.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003592/0.3077, allocations: 203.3 kB / 441.3 MB, free: 12.22 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006184/0.3084, allocations: 319.2 kB / 441.6 MB, free: 11.85 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/0.3084, allocations: 4 kB / 441.7 MB, free: 11.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0008673/0.3092, allocations: 383.6 kB / 442 MB, free: 11.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.106e-05/0.3093, allocations: 33.7 kB / 442.1 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.468e-05/0.3093, allocations: 11.98 kB / 442.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001894/0.3095, allocations: 37.17 kB / 442.1 MB, free: 11.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002493/0.3097, allocations: 67.83 kB / 442.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001174/0.3109, allocations: 1.295 MB / 443.5 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003357/0.3112, allocations: 55.69 kB / 443.5 MB, free: 9.832 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.149e-05/0.3113, allocations: 16 kB / 443.5 MB, free: 9.816 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.0001666/0.3114, allocations: 149.9 kB / 443.7 MB, free: 9.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.327e-05/0.3115, allocations: 27.81 kB / 443.7 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.669e-05/0.3115, allocations: 30.61 kB / 443.7 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.3115, allocations: 0 / 443.7 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.3115, allocations: 7.938 kB / 443.7 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.3116, allocations: 3.984 kB / 443.8 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004979/0.3121, allocations: 438.2 kB / 444.2 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3121, allocations: 32 / 444.2 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001382/0.3122, allocations: 23.98 kB / 444.2 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000104/0.3123, allocations: 32.77 kB / 444.2 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.2e-05/0.3123, allocations: 0 / 444.2 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001022/0.3133, allocations: 1.291 MB / 445.5 MB, free: 7.648 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.3133, allocations: 4 kB / 445.5 MB, free: 7.645 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006178/0.314, allocations: 258.6 kB / 445.8 MB, free: 7.367 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.249e-05/0.314, allocations: 31.83 kB / 445.8 MB, free: 7.336 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.047e-05/0.3141, allocations: 4 kB / 445.8 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002108/0.3143, allocations: 27.97 kB / 445.8 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.764e-05/0.3143, allocations: 23.91 kB / 445.9 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.199e-05/0.3144, allocations: 4 kB / 445.9 MB, free: 7.277 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002511/0.3146, allocations: 235.1 kB / 446.1 MB, free: 7.047 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3146, allocations: 3.938 kB / 446.1 MB, free: 7.043 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003438/0.315, allocations: 71.89 kB / 446.2 MB, free: 6.973 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.0009354/0.3159, allocations: 0.7973 MB / 447 MB, free: 6.137 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008467/0.3167, allocations: 382.6 kB / 447.3 MB, free: 5.738 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.3167, allocations: 192 / 447.3 MB, free: 5.738 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004199/0.3172, allocations: 214.5 kB / 447.6 MB, free: 5.516 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003201/0.3175, allocations: 45.86 kB / 447.6 MB, free: 5.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004719/0.3222, allocations: 3.13 MB / 450.7 MB, free: 2.148 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003792/0.3226, allocations: 0.7561 MB / 451.5 MB, free: 1.363 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001277/0.3227, allocations: 34.97 kB / 451.5 MB, free: 1.328 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001432/0.3228, allocations: 99.33 kB / 451.6 MB, free: 1.234 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3228, allocations: 0 / 451.6 MB, free: 1.234 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03749/0.3603, allocations: 6.655 MB / 458.3 MB, free: 10.71 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.8, allocations: 10.83 kB / 458.3 MB, free: 10.71 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 & /home/hudson/saved_omc/OMSimulator/install/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 --stepSize=0.001 --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) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.167799890041351]