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.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.002009/0.002009, allocations: 107.8 kB / 19.76 MB, free: 2.551 MB / 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.002386/0.002386, allocations: 189.4 kB / 22.92 MB, free: 5.582 MB / 14.72 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.501/1.501, allocations: 207.6 MB / 233.5 MB, free: 10.98 MB / 190.1 MB " [Timeout remaining time 178] 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.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_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: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002996/0.002996, allocations: 51.92 kB / 345.4 MB, free: 10.39 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2975/0.3005, allocations: 49.12 MB / 394.6 MB, free: 9.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005327/0.3058, allocations: 4.064 MB / 398.6 MB, free: 6.523 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002305/0.3081, allocations: 1.127 MB / 399.8 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002907/0.3084, allocations: 13.97 kB / 399.8 MB, free: 5.691 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002424/0.3087, allocations: 97.81 kB / 399.9 MB, free: 5.629 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003481/0.309, allocations: 172.7 kB / 400 MB, free: 5.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005723/0.3096, allocations: 279.2 kB / 400.3 MB, free: 5.324 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008893/0.3105, allocations: 0.9713 MB / 401.3 MB, free: 4.816 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003317/0.3108, allocations: 200.2 kB / 401.5 MB, free: 4.703 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004216/0.3112, allocations: 378.5 kB / 401.8 MB, free: 4.512 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000466/0.3117, allocations: 437.2 kB / 402.3 MB, free: 4.289 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001544/0.3118, allocations: 114.2 kB / 402.4 MB, free: 4.289 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001558/0.312, allocations: 112.9 kB / 402.5 MB, free: 4.289 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001653/0.3122, allocations: 210.2 kB / 402.7 MB, free: 4.141 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003332/0.3125, allocations: 422.6 kB / 403.1 MB, free: 3.863 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001187/0.3137, allocations: 1.137 MB / 404.2 MB, free: 3.422 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.3137, allocations: 5.094 kB / 404.3 MB, free: 3.418 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3137, allocations: 0 / 404.3 MB, free: 3.418 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.3e-05/0.3137, allocations: 0 / 404.3 MB, free: 3.418 MB / 318.1 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.002767/0.3165, allocations: 1.204 MB / 405.5 MB, free: 2.637 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.3165, allocations: 9.75 kB / 405.5 MB, free: 2.637 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000171/0.3167, allocations: 78.5 kB / 405.5 MB, free: 2.598 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006545/0.3173, allocations: 449.7 kB / 406 MB, free: 2.223 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.984e-05/0.3174, allocations: 48.66 kB / 406 MB, free: 2.199 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001086/0.3175, allocations: 53.78 kB / 406.1 MB, free: 2.184 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002046/0.3195, allocations: 0.9269 MB / 407 MB, free: 1.742 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.088e-05/0.3196, allocations: 1.375 kB / 407 MB, free: 1.742 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.19e-05/0.3196, allocations: 31.61 kB / 407 MB, free: 1.719 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.535e-05/0.3197, allocations: 13.75 kB / 407.1 MB, free: 1.719 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002597/0.3223, allocations: 0.9737 MB / 408 MB, free: 1.316 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004931/0.3272, allocations: 3.063 MB / 411.1 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002375/0.3296, allocations: 0.8756 MB / 412 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001206/0.3308, allocations: 424.3 kB / 412.4 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.564e-05/0.3308, allocations: 12 kB / 412.4 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001193/0.332, allocations: 464.5 kB / 412.8 MB, free: 13.69 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 3.797e-06/0.332, allocations: 0 / 412.8 MB, free: 13.69 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.003296/0.3353, allocations: 1.094 MB / 413.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001805/0.3355, allocations: 269.5 kB / 414.2 MB, free: 12.83 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008452/0.3363, allocations: 0.5079 MB / 414.7 MB, free: 12.51 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.099e-05/0.3364, allocations: 38.23 kB / 414.8 MB, free: 12.47 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003107/0.3367, allocations: 343.6 kB / 415.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001766/0.3369, allocations: 175.6 kB / 415.3 MB, free: 12.01 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002697/0.3372, allocations: 139.6 kB / 415.4 MB, free: 11.92 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0003022/0.3375, allocations: 362.4 kB / 415.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001183/0.3387, allocations: 403.2 kB / 416.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001347/0.34, allocations: 0.6602 MB / 416.8 MB, free: 10.84 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002326/0.3423, allocations: 0.9615 MB / 417.8 MB, free: 10.17 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.392e-05/0.3424, allocations: 2.031 kB / 417.8 MB, free: 10.17 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002975/0.3453, allocations: 1.127 MB / 418.9 MB, free: 9.566 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.189e-05/0.3454, allocations: 73.08 kB / 419 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.516e-05/0.3454, allocations: 6.875 kB / 419 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.194e-05/0.3455, allocations: 9.625 kB / 419 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001035/0.3465, allocations: 218.5 kB / 419.2 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.409e-05/0.3465, allocations: 21.61 kB / 419.2 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001082/0.3476, allocations: 183.9 kB / 419.4 MB, free: 9.316 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.035e-05/0.3477, allocations: 33.33 kB / 419.4 MB, free: 9.309 MB / 334.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.0003533/0.348, allocations: 217.5 kB / 419.6 MB, free: 9.125 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.3481, allocations: 59.19 kB / 419.7 MB, free: 9.094 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001489/0.3483, allocations: 64.14 kB / 419.8 MB, free: 9.047 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.181e-05/0.3483, allocations: 16.11 kB / 419.8 MB, free: 9.035 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.32e-05/0.3483, allocations: 5.25 kB / 419.8 MB, free: 9.031 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.267e-06/0.3483, allocations: 3.984 kB / 419.8 MB, free: 9.027 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003377/0.3517, allocations: 1.641 MB / 421.4 MB, free: 7.887 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.3517, allocations: 3.938 kB / 421.4 MB, free: 7.883 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007775/0.3525, allocations: 148.8 kB / 421.6 MB, free: 7.836 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/0.3525, allocations: 2.656 kB / 421.6 MB, free: 7.836 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.034e-05/0.3525, allocations: 19.73 kB / 421.6 MB, free: 7.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.3525, allocations: 1.5 kB / 421.6 MB, free: 7.82 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.3525, allocations: 1.469 kB / 421.6 MB, free: 7.82 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003345/0.3559, allocations: 1.294 MB / 422.9 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001787/0.3561, allocations: 136.7 kB / 423 MB, free: 6.574 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.887e-05/0.3562, allocations: 12 kB / 423 MB, free: 6.562 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007233/0.3569, allocations: 103.9 kB / 423.1 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.357, allocations: 52.38 kB / 423.2 MB, free: 6.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.301e-05/0.3571, allocations: 11.98 kB / 423.2 MB, free: 6.398 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005624/0.3576, allocations: 354.8 kB / 423.5 MB, free: 6.055 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3576, allocations: 0 / 423.5 MB, free: 6.055 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006743/0.3583, allocations: 171.8 kB / 423.7 MB, free: 5.887 MB / 334.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.0001923/0.3585, allocations: 123 kB / 423.8 MB, free: 5.758 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00248/0.361, allocations: 0.9616 MB / 424.8 MB, free: 4.773 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.361, allocations: 0 / 424.8 MB, free: 4.773 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001057/0.362, allocations: 403 kB / 425.2 MB, free: 4.379 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005906/0.3626, allocations: 93.8 kB / 425.3 MB, free: 4.285 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002489/0.3651, allocations: 1.186 MB / 426.5 MB, free: 3.07 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005037/0.3656, allocations: 0.8588 MB / 427.3 MB, free: 2.188 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003634/0.366, allocations: 76.66 kB / 427.4 MB, free: 2.113 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002151/0.3662, allocations: 51.42 kB / 427.5 MB, free: 2.062 MB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3662, allocations: 0 / 427.5 MB, free: 2.062 MB / 334.1 MB Notification: Performance of Templates: time 0.01516/0.3814, allocations: 8.47 MB / 435.9 MB, free: 9.578 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.974572967737913]