Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001389/0.001389, allocations: 92.47 kB / 20.95 MB, free: 472 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001333/0.001333, allocations: 149.7 kB / 24.24 MB, free: 3.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 173.3 MB / 200.8 MB, free: 12.75 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5059,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5059,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 267.3 MB, free: 10.21 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.927e-05/3.095e-05, allocations: 2.312 kB / 267.3 MB, free: 10.21 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.008347/0.008378, allocations: 3.819 MB / 271.1 MB, free: 6.363 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.004051/0.01243, allocations: 1.152 MB / 272.3 MB, free: 5.203 MB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000424/0.01285, allocations: 11.94 kB / 272.3 MB, free: 5.191 MB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004202/0.01327, allocations: 110.8 kB / 272.4 MB, free: 5.082 MB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006711/0.01394, allocations: 190.2 kB / 272.6 MB, free: 4.895 MB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001207/0.01515, allocations: 339.5 kB / 272.9 MB, free: 4.562 MB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.001939/0.01709, allocations: 1.116 MB / 274 MB, free: 3.445 MB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000551/0.01764, allocations: 187.1 kB / 274.2 MB, free: 3.258 MB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001226/0.01887, allocations: 0.6005 MB / 274.8 MB, free: 2.656 MB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009233/0.01979, allocations: 359 kB / 275.2 MB, free: 2.305 MB / 254.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002763/0.02007, allocations: 120 kB / 275.3 MB, free: 2.188 MB / 254.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000291/0.02036, allocations: 120 kB / 275.4 MB, free: 2.07 MB / 254.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003577/0.02071, allocations: 227.3 kB / 275.6 MB, free: 1.848 MB / 254.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006156/0.02133, allocations: 315.4 kB / 275.9 MB, free: 1.539 MB / 254.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002258/0.02359, allocations: 1.309 MB / 277.2 MB, free: 232 kB / 254.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.02359, allocations: 0 / 277.2 MB, free: 232 kB / 254.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.0236, allocations: 0 / 277.2 MB, free: 232 kB / 254.1 MB Notification: Performance of Transformations before backend: time 1.417e-05/0.02361, allocations: 0 / 277.2 MB, free: 232 kB / 254.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.005104/0.02871, allocations: 1.194 MB / 278.4 MB, free: 14.98 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/0.02876, allocations: 8.922 kB / 278.4 MB, free: 14.97 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004177/0.02918, allocations: 136.4 kB / 278.6 MB, free: 14.84 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001227/0.03041, allocations: 431.3 kB / 279 MB, free: 14.39 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.246e-05/0.03049, allocations: 45.69 kB / 279 MB, free: 14.35 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001877/0.03068, allocations: 60.31 kB / 279.1 MB, free: 14.29 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004413/0.03509, allocations: 1.27 MB / 280.4 MB, free: 12.89 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.395e-05/0.03513, allocations: 4.125 kB / 280.4 MB, free: 12.88 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001321/0.03526, allocations: 28.38 kB / 280.4 MB, free: 12.86 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.289e-05/0.03529, allocations: 19.94 kB / 280.4 MB, free: 12.84 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005787/0.04108, allocations: 0.9913 MB / 281.4 MB, free: 11.84 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009076/0.05015, allocations: 2.85 MB / 284.3 MB, free: 8.875 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004728/0.05488, allocations: 0.7308 MB / 285 MB, free: 8.133 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002369/0.05725, allocations: 422 kB / 285.4 MB, free: 7.719 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.369e-05/0.05733, allocations: 16.48 kB / 285.4 MB, free: 7.703 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00234/0.05967, allocations: 462 kB / 285.9 MB, free: 7.238 MB / 270.1 MB Notification: Performance of pre-optimization done (n=50): time 4.949e-06/0.05968, allocations: 4 kB / 285.9 MB, free: 7.234 MB / 270.1 MB Notification: Performance of matching and sorting (n=50): time 0.006854/0.06653, allocations: 1.117 MB / 287 MB, free: 6.109 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003981/0.06693, allocations: 372.3 kB / 287.4 MB, free: 5.66 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0015/0.06843, allocations: 0.5377 MB / 287.9 MB, free: 5.109 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001349/0.06857, allocations: 41.7 kB / 287.9 MB, free: 5.062 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005461/0.06911, allocations: 384.3 kB / 288.3 MB, free: 4.684 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003157/0.06943, allocations: 174.5 kB / 288.5 MB, free: 4.512 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004641/0.06989, allocations: 134.6 kB / 288.6 MB, free: 4.375 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0003251/0.07022, allocations: 366.8 kB / 289 MB, free: 4.008 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002473/0.07269, allocations: 461.1 kB / 289.4 MB, free: 3.543 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003244/0.07593, allocations: 1.033 MB / 290.5 MB, free: 2.301 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004932/0.08087, allocations: 0.9715 MB / 291.4 MB, free: 1.234 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.02e-05/0.08088, allocations: 0 / 291.4 MB, free: 1.234 MB / 270.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.006103/0.08698, allocations: 1.233 MB / 292.7 MB, free: 15.96 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001187/0.0871, allocations: 71.27 kB / 292.7 MB, free: 15.89 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.291e-05/0.08712, allocations: 8 kB / 292.7 MB, free: 15.88 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.143e-05/0.08716, allocations: 8 kB / 292.8 MB, free: 15.87 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002146/0.08931, allocations: 227.8 kB / 293 MB, free: 15.65 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.248e-05/0.08934, allocations: 11.94 kB / 293 MB, free: 15.64 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002052/0.09139, allocations: 183.3 kB / 293.2 MB, free: 15.46 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001135/0.09151, allocations: 28 kB / 293.2 MB, free: 15.43 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 (VIN2.signalSource.count,$PRE.VIN2.signalSource.count,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.T_start,VIN1.signalSource.count,$PRE.VIN1.signalSource.count,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005511/0.09206, allocations: 221.6 kB / 293.4 MB, free: 15.2 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002837/0.09234, allocations: 87.56 kB / 293.5 MB, free: 15.12 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002641/0.0926, allocations: 65.89 kB / 293.6 MB, free: 15.05 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.087e-05/0.09262, allocations: 8 kB / 293.6 MB, free: 15.04 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.94e-05/0.09263, allocations: 7.984 kB / 293.6 MB, free: 15.04 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.4e-05/0.09265, allocations: 4 kB / 293.6 MB, free: 15.03 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006538/0.09919, allocations: 1.452 MB / 295 MB, free: 13.54 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.483e-06/0.09919, allocations: 0 / 295 MB, free: 13.54 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001621/0.1008, allocations: 147.7 kB / 295.2 MB, free: 13.4 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.554e-05/0.1008, allocations: 4 kB / 295.2 MB, free: 13.39 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.883e-05/0.1009, allocations: 16 kB / 295.2 MB, free: 13.38 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.953e-06/0.1009, allocations: 0 / 295.2 MB, free: 13.38 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.1009, allocations: 0 / 295.2 MB, free: 13.38 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004225/0.1051, allocations: 1.317 MB / 296.5 MB, free: 12.04 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001631/0.1053, allocations: 67.48 kB / 296.6 MB, free: 11.98 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001003/0.1054, allocations: 23.98 kB / 296.6 MB, free: 11.95 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008211/0.1062, allocations: 95.86 kB / 296.7 MB, free: 11.86 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001678/0.1064, allocations: 56.41 kB / 296.7 MB, free: 11.8 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.747e-05/0.1064, allocations: 19.98 kB / 296.8 MB, free: 11.79 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0005853/0.107, allocations: 366.8 kB / 297.1 MB, free: 11.43 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.107, allocations: 0 / 297.1 MB, free: 11.43 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006698/0.1077, allocations: 183.7 kB / 297.3 MB, free: 11.25 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN1.signalSource.count,VIN2.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001928/0.1079, allocations: 115.2 kB / 297.4 MB, free: 11.12 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002767/0.1107, allocations: 1.021 MB / 298.4 MB, free: 10.07 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.1107, allocations: 0 / 298.4 MB, free: 10.07 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001165/0.1118, allocations: 403.1 kB / 298.8 MB, free: 9.676 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006376/0.1125, allocations: 122.1 kB / 299 MB, free: 9.559 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00262/0.1151, allocations: 1.213 MB / 300.2 MB, free: 8.312 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002993/0.1154, allocations: 280.4 kB / 300.4 MB, free: 8.012 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000396/0.1158, allocations: 80.66 kB / 300.5 MB, free: 7.934 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002232/0.116, allocations: 56.48 kB / 300.6 MB, free: 7.879 MB / 286.1 MB Notification: Performance of SimCode: time 9.12e-07/0.116, allocations: 0 / 300.6 MB, free: 7.879 MB / 286.1 MB Notification: Performance of Templates: time 0.1176/0.2336, allocations: 8.702 MB / 309.3 MB, free: 50.74 MB / 286.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.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: 4.481960032135248]