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.001287/0.001287, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00201/0.003297, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.001095/0.001095, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001537/0.002632, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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 0.9235/0.9235, allocations: 173.4 MB / 186 MB, free: 7.539 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1679/1.091, allocations: 52.49 MB / 238.5 MB, free: 7.633 MB / 234.7 MB " [Timeout remaining time 179] 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.944e-06/1.944e-06, allocations: 0 / 239.8 MB, free: 6.359 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.146e-05/2.34e-05, allocations: 3.531 kB / 239.8 MB, free: 6.355 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.008696/0.00872, allocations: 4.136 MB / 243.9 MB, free: 2.211 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.005692/0.01441, allocations: 1.214 MB / 245.1 MB, free: 1.004 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003245/0.01474, allocations: 15.94 kB / 245.1 MB, free: 0.9883 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002254/0.01496, allocations: 110.9 kB / 245.2 MB, free: 0.8789 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003633/0.01532, allocations: 195.4 kB / 245.4 MB, free: 0.6875 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003659/0.01898, allocations: 339.5 kB / 245.8 MB, free: 368 kB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.00102/0.02, allocations: 1.104 MB / 246.9 MB, free: 15.25 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002906/0.02029, allocations: 197 kB / 247.1 MB, free: 15.05 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007081/0.021, allocations: 0.6775 MB / 247.7 MB, free: 14.37 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004146/0.02142, allocations: 363.1 kB / 248.1 MB, free: 14.02 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000131/0.02155, allocations: 123.9 kB / 248.2 MB, free: 13.89 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001346/0.02168, allocations: 120 kB / 248.3 MB, free: 13.78 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00013/0.02181, allocations: 164.5 kB / 248.5 MB, free: 13.62 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002486/0.02206, allocations: 255.6 kB / 248.7 MB, free: 13.37 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001643/0.0237, allocations: 0.6426 MB / 249.4 MB, free: 12.72 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.391e-05/0.02372, allocations: 0.9062 kB / 249.4 MB, free: 12.72 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.02372, allocations: 0 / 249.4 MB, free: 12.72 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.009e-05/0.02374, allocations: 1.781 kB / 249.4 MB, free: 12.72 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: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.001789/0.02553, allocations: 1.245 MB / 250.6 MB, free: 11.44 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.02557, allocations: 8.031 kB / 250.6 MB, free: 11.43 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000167/0.02574, allocations: 105.4 kB / 250.7 MB, free: 11.33 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004579/0.02619, allocations: 305.7 kB / 251 MB, free: 11 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.362e-05/0.02624, allocations: 41.69 kB / 251.1 MB, free: 10.96 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.498e-05/0.02633, allocations: 68.36 kB / 251.1 MB, free: 10.9 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001028/0.02736, allocations: 0.9531 MB / 252.1 MB, free: 9.809 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.02738, allocations: 4.188 kB / 252.1 MB, free: 9.805 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.294e-05/0.02743, allocations: 28.38 kB / 252.1 MB, free: 9.777 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.334e-05/0.02746, allocations: 23.92 kB / 252.1 MB, free: 9.754 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004396/0.0279, allocations: 238.7 kB / 252.4 MB, free: 9.523 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002707/0.0306, allocations: 2.276 MB / 254.7 MB, free: 7.145 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000557/0.03116, allocations: 320.2 kB / 255 MB, free: 6.828 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000204/0.03136, allocations: 156.3 kB / 255.1 MB, free: 6.676 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.079e-05/0.03142, allocations: 20.48 kB / 255.1 MB, free: 6.656 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002683/0.03168, allocations: 226 kB / 255.4 MB, free: 6.426 MB / 250.7 MB Notification: Performance of pre-optimization done (n=50): time 2.575e-06/0.03169, allocations: 0 / 255.4 MB, free: 6.426 MB / 250.7 MB Notification: Performance of matching and sorting (n=50): time 0.0004744/0.03216, allocations: 330 kB / 255.7 MB, free: 6.098 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.239e-05/0.0322, allocations: 67.84 kB / 255.7 MB, free: 6.016 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002865/0.03249, allocations: 463 kB / 256.2 MB, free: 5.551 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.317e-05/0.03253, allocations: 41.7 kB / 256.2 MB, free: 5.504 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.03267, allocations: 329.2 kB / 256.6 MB, free: 5.18 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.614e-05/0.03276, allocations: 182.5 kB / 256.7 MB, free: 5 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001336/0.0329, allocations: 134.6 kB / 256.9 MB, free: 4.863 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.891e-05/0.033, allocations: 378.6 kB / 257.2 MB, free: 4.484 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001527/0.03315, allocations: 145.4 kB / 257.4 MB, free: 4.332 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003584/0.03351, allocations: 0.728 MB / 258.1 MB, free: 3.391 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004213/0.03393, allocations: 0.5224 MB / 258.6 MB, free: 2.773 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.073e-06/0.03394, allocations: 4 kB / 258.6 MB, free: 2.77 MB / 250.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0005422/0.03448, allocations: 0.5502 MB / 259.2 MB, free: 2.184 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.515e-05/0.03453, allocations: 67.41 kB / 259.3 MB, free: 2.105 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.03455, allocations: 7.938 kB / 259.3 MB, free: 2.098 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.03456, allocations: 12 kB / 259.3 MB, free: 2.086 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005796/0.03514, allocations: 219.7 kB / 259.5 MB, free: 1.871 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/0.03515, allocations: 8 kB / 259.5 MB, free: 1.863 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000355/0.03551, allocations: 127.6 kB / 259.6 MB, free: 1.738 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.617e-05/0.03555, allocations: 35.92 kB / 259.7 MB, free: 1.703 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.0001554/0.0357, allocations: 161.6 kB / 259.8 MB, free: 1.535 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.261e-05/0.03576, allocations: 59.88 kB / 259.9 MB, free: 1.477 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.456e-05/0.03585, allocations: 69.94 kB / 259.9 MB, free: 1.398 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.03585, allocations: 4 kB / 259.9 MB, free: 1.395 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.03586, allocations: 0 / 259.9 MB, free: 1.395 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.03586, allocations: 0 / 259.9 MB, free: 1.395 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008469/0.03671, allocations: 0.6923 MB / 260.6 MB, free: 0.6797 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.03671, allocations: 0 / 260.6 MB, free: 0.6797 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003602/0.03707, allocations: 139.8 kB / 260.8 MB, free: 0.543 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.474e-05/0.03713, allocations: 59.45 kB / 260.8 MB, free: 496 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.628e-06/0.03713, allocations: 4 kB / 260.8 MB, free: 492 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.584e-05/0.03716, allocations: 11.98 kB / 260.8 MB, free: 480 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.03716, allocations: 7.938 kB / 260.9 MB, free: 472 kB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.03716, allocations: 0 / 260.9 MB, free: 472 kB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005273/0.03769, allocations: 486.7 kB / 261.3 MB, free: 15.97 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.197e-05/0.03774, allocations: 12 kB / 261.3 MB, free: 15.96 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002263/0.03797, allocations: 63.92 kB / 261.4 MB, free: 15.9 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.408e-05/0.03805, allocations: 44.42 kB / 261.4 MB, free: 15.86 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.19e-05/0.03807, allocations: 15.98 kB / 261.5 MB, free: 15.84 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001349/0.03821, allocations: 192.4 kB / 261.7 MB, free: 15.65 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03821, allocations: 0 / 261.7 MB, free: 15.65 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003657/0.03858, allocations: 191.8 kB / 261.8 MB, free: 15.46 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.0001278/0.0387, allocations: 96.3 kB / 261.9 MB, free: 15.36 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004701/0.03917, allocations: 0.5137 MB / 262.4 MB, free: 14.81 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.291e-05/0.0392, allocations: 12.44 kB / 262.5 MB, free: 14.8 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002022/0.0394, allocations: 177.6 kB / 262.6 MB, free: 14.62 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006049/0.04, allocations: 0.9907 MB / 263.6 MB, free: 13.45 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002801/0.0428, allocations: 1.014 MB / 264.6 MB, free: 12.4 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.009e-05/0.04288, allocations: 134 kB / 264.8 MB, free: 12.24 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002352/0.04312, allocations: 80.66 kB / 264.8 MB, free: 12.16 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003513/0.04347, allocations: 201.3 kB / 265 MB, free: 11.97 MB / 266.7 MB Notification: Performance of SimCode: time 2.265e-06/0.04347, allocations: 7.875 kB / 265.1 MB, free: 11.96 MB / 266.7 MB Notification: Performance of Templates: time 0.0128/0.05627, allocations: 9.507 MB / 274.6 MB, free: 2.609 MB / 266.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6439329786226153]