Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 79.73 kB / 21.97 MB, free: 2.598 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 164.2 kB / 25.33 MB, free: 8.594 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.014/1.014, allocations: 158.6 MB / 187.2 MB, free: 2.93 MB / 170.7 MB " [Timeout remaining time 179] 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.843e-06/1.843e-06, allocations: 0 / 251 MB, free: 7.516 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.59e-05/3.774e-05, allocations: 10.19 kB / 251.1 MB, free: 7.504 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.003821/0.003859, allocations: 3.965 MB / 255 MB, free: 3.512 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001673/0.005532, allocations: 1.111 MB / 256.1 MB, free: 2.395 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002295/0.005762, allocations: 8 kB / 256.1 MB, free: 2.387 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002316/0.005993, allocations: 103 kB / 256.2 MB, free: 2.285 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000327/0.00632, allocations: 178.3 kB / 256.4 MB, free: 2.109 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005669/0.006887, allocations: 283.5 kB / 256.7 MB, free: 1.832 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008467/0.007734, allocations: 0.9913 MB / 257.7 MB, free: 0.832 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003059/0.00804, allocations: 179.1 kB / 257.9 MB, free: 0.6523 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000571/0.008611, allocations: 0.5537 MB / 258.4 MB, free: 100 kB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003557/0.008967, allocations: 351.1 kB / 258.7 MB, free: 15.75 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001263/0.009093, allocations: 116 kB / 258.9 MB, free: 15.64 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001066/0.0092, allocations: 115.9 kB / 259 MB, free: 15.53 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001252/0.009325, allocations: 215.4 kB / 259.2 MB, free: 15.32 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002233/0.009548, allocations: 303.3 kB / 259.5 MB, free: 15.02 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006346/0.01018, allocations: 0.6699 MB / 260.2 MB, free: 14.35 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.01019, allocations: 3.984 kB / 260.2 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.245e-06/0.01019, allocations: 0 / 260.2 MB, free: 14.34 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.705e-05/0.01021, allocations: 4 kB / 260.2 MB, free: 14.34 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.001702/0.01191, allocations: 1.15 MB / 261.3 MB, free: 13.14 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.01195, allocations: 11.98 kB / 261.3 MB, free: 13.13 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001774/0.01213, allocations: 120.5 kB / 261.4 MB, free: 13.01 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000438/0.01257, allocations: 390.4 kB / 261.8 MB, free: 12.61 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.182e-05/0.01261, allocations: 41.69 kB / 261.9 MB, free: 12.56 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.412e-05/0.01268, allocations: 60.38 kB / 261.9 MB, free: 12.5 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001114/0.01379, allocations: 0.9075 MB / 262.8 MB, free: 11.46 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.947e-05/0.01381, allocations: 192 / 262.8 MB, free: 11.46 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.326e-05/0.01387, allocations: 27.94 kB / 262.9 MB, free: 11.43 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.8e-05/0.01389, allocations: 12 kB / 262.9 MB, free: 11.42 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005818/0.01447, allocations: 341.6 kB / 263.2 MB, free: 11.09 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002655/0.01712, allocations: 2.945 MB / 266.1 MB, free: 8.012 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007/0.01782, allocations: 401.1 kB / 266.5 MB, free: 7.609 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003033/0.01813, allocations: 193.1 kB / 266.7 MB, free: 7.418 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.238e-05/0.01817, allocations: 16.48 kB / 266.7 MB, free: 7.402 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000363/0.01853, allocations: 259.4 kB / 267 MB, free: 7.133 MB / 250.7 MB Notification: Performance of pre-optimization done (n=50): time 2.033e-06/0.01853, allocations: 0 / 267 MB, free: 7.133 MB / 250.7 MB Notification: Performance of matching and sorting (n=50): time 0.0008532/0.01939, allocations: 0.4967 MB / 267.5 MB, free: 6.633 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001487/0.01954, allocations: 269.5 kB / 267.8 MB, free: 6.309 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003565/0.01989, allocations: 494.5 kB / 268.2 MB, free: 5.809 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.125e-05/0.01993, allocations: 41.7 kB / 268.3 MB, free: 5.762 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002694/0.0202, allocations: 407.2 kB / 268.7 MB, free: 5.355 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.815e-05/0.0203, allocations: 170.5 kB / 268.8 MB, free: 5.188 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001567/0.02046, allocations: 144.2 kB / 269 MB, free: 5.039 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.0206, allocations: 0.539 MB / 269.5 MB, free: 4.488 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002642/0.02086, allocations: 189.3 kB / 269.7 MB, free: 4.293 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005937/0.02146, allocations: 0.7499 MB / 270.5 MB, free: 3.328 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005732/0.02203, allocations: 0.6195 MB / 271.1 MB, free: 2.582 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.02203, allocations: 0 / 271.1 MB, free: 2.582 MB / 250.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.000835/0.02287, allocations: 0.7334 MB / 271.8 MB, free: 1.816 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.405e-05/0.02291, allocations: 67.39 kB / 271.9 MB, free: 1.738 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.02292, allocations: 8 kB / 271.9 MB, free: 1.73 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.936e-05/0.02294, allocations: 12 kB / 271.9 MB, free: 1.719 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004561/0.0234, allocations: 191.7 kB / 272.1 MB, free: 1.531 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.02341, allocations: 8 kB / 272.1 MB, free: 1.523 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003468/0.02376, allocations: 127.4 kB / 272.2 MB, free: 1.398 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.218e-05/0.0238, allocations: 36 kB / 272.3 MB, free: 1.363 MB / 250.7 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.0001575/0.02396, allocations: 208.3 kB / 272.5 MB, free: 1.148 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.884e-05/0.02403, allocations: 75.62 kB / 272.5 MB, free: 1.074 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.885e-05/0.02411, allocations: 69.44 kB / 272.6 MB, free: 1.004 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.02412, allocations: 4 kB / 272.6 MB, free: 1 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.02412, allocations: 0 / 272.6 MB, free: 1 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.02413, allocations: 3.984 kB / 272.6 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001362/0.02549, allocations: 1.034 MB / 273.6 MB, free: 15.92 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.02549, allocations: 0 / 273.6 MB, free: 15.92 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003144/0.02581, allocations: 119.8 kB / 273.8 MB, free: 15.8 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.878e-06/0.02581, allocations: 0 / 273.8 MB, free: 15.8 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.038e-05/0.02584, allocations: 19.98 kB / 273.8 MB, free: 15.79 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.02585, allocations: 4 kB / 273.8 MB, free: 15.78 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.02585, allocations: 3.938 kB / 273.8 MB, free: 15.78 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007902/0.02664, allocations: 0.6736 MB / 274.5 MB, free: 15.09 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.231e-05/0.02669, allocations: 63.53 kB / 274.5 MB, free: 15.03 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.638e-05/0.02675, allocations: 12 kB / 274.5 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002389/0.02699, allocations: 63.97 kB / 274.6 MB, free: 14.95 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/0.0271, allocations: 56.34 kB / 274.6 MB, free: 14.9 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.437e-05/0.02712, allocations: 12 kB / 274.7 MB, free: 14.89 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002047/0.02733, allocations: 314.8 kB / 275 MB, free: 14.58 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02733, allocations: 0 / 275 MB, free: 14.58 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.00036/0.02769, allocations: 179.7 kB / 275.1 MB, free: 14.41 MB / 266.7 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.0001116/0.0278, allocations: 115.2 kB / 275.3 MB, free: 14.29 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000665/0.02846, allocations: 0.5896 MB / 275.8 MB, free: 13.66 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.02847, allocations: 3.938 kB / 275.8 MB, free: 13.65 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002515/0.02872, allocations: 195.5 kB / 276 MB, free: 13.46 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003517/0.02907, allocations: 110 kB / 276.1 MB, free: 13.35 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0014/0.03047, allocations: 0.9782 MB / 277.1 MB, free: 12.34 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.52e-05/0.03054, allocations: 121.9 kB / 277.2 MB, free: 12.2 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002079/0.03075, allocations: 80.47 kB / 277.3 MB, free: 12.12 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001541/0.03091, allocations: 48.5 kB / 277.4 MB, free: 12.07 MB / 266.7 MB Notification: Performance of SimCode: time 1.042e-06/0.03091, allocations: 0 / 277.4 MB, free: 12.07 MB / 266.7 MB Notification: Performance of Templates: time 0.01066/0.04157, allocations: 8.695 MB / 286.1 MB, free: 3.398 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.997985941823572]