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.001737/0.001737, allocations: 82.52 kB / 21.99 MB, free: 4.75 MB / 14.72 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.001536/0.001536, allocations: 153.4 kB / 25.24 MB, free: 2.746 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.362/1.362, allocations: 158.6 MB / 187 MB, free: 6.219 MB / 174.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.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: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001863/0.001863, allocations: 55.92 kB / 299.4 MB, free: 6.82 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2189/0.2208, allocations: 49.14 MB / 348.5 MB, free: 15.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005282/0.2261, allocations: 3.635 MB / 352.2 MB, free: 11.85 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002265/0.2283, allocations: 1.096 MB / 353.3 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002171/0.2285, allocations: 15.94 kB / 353.3 MB, free: 10.73 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002454/0.2288, allocations: 91.03 kB / 353.4 MB, free: 10.64 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003423/0.2291, allocations: 174.4 kB / 353.6 MB, free: 10.47 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005608/0.2297, allocations: 291.6 kB / 353.8 MB, free: 10.19 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001026/0.2307, allocations: 0.9643 MB / 354.8 MB, free: 9.219 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003465/0.2311, allocations: 183 kB / 355 MB, free: 9.031 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004542/0.2315, allocations: 382.9 kB / 355.4 MB, free: 8.656 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005321/0.232, allocations: 382.4 kB / 355.7 MB, free: 8.281 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001541/0.2322, allocations: 112 kB / 355.8 MB, free: 8.172 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001645/0.2324, allocations: 120 kB / 356 MB, free: 8.055 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002155/0.2326, allocations: 211.4 kB / 356.2 MB, free: 7.848 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003947/0.233, allocations: 346.6 kB / 356.5 MB, free: 7.508 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001376/0.2343, allocations: 1.147 MB / 357.6 MB, free: 6.363 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2343, allocations: 3.938 kB / 357.7 MB, free: 6.359 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.2344, allocations: 0 / 357.7 MB, free: 6.359 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.167e-05/0.2344, allocations: 0 / 357.7 MB, free: 6.359 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.002928/0.2373, allocations: 1.132 MB / 358.8 MB, free: 5.18 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.7e-05/0.2373, allocations: 15.98 kB / 358.8 MB, free: 5.164 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001628/0.2375, allocations: 80.45 kB / 358.9 MB, free: 5.086 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000672/0.2382, allocations: 384.3 kB / 359.3 MB, free: 4.688 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.221e-05/0.2382, allocations: 45.69 kB / 359.3 MB, free: 4.645 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001002/0.2383, allocations: 52.38 kB / 359.3 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002327/0.2407, allocations: 1.134 MB / 360.5 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.707e-05/0.2407, allocations: 0 / 360.5 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.422e-05/0.2408, allocations: 24 kB / 360.5 MB, free: 3.324 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.592e-05/0.2408, allocations: 12 kB / 360.5 MB, free: 3.312 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00299/0.2438, allocations: 0.9756 MB / 361.5 MB, free: 2.332 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00461/0.2484, allocations: 2.726 MB / 364.2 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002347/0.2507, allocations: 0.7355 MB / 365 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001225/0.2519, allocations: 418.4 kB / 365.4 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.504e-05/0.252, allocations: 12.48 kB / 365.4 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001237/0.2532, allocations: 466.1 kB / 365.8 MB, free: 13.86 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.285e-06/0.2532, allocations: 0 / 365.8 MB, free: 13.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=50): time 0.003336/0.2566, allocations: 1.09 MB / 366.9 MB, free: 12.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001732/0.2567, allocations: 265.5 kB / 367.2 MB, free: 12.45 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007303/0.2575, allocations: 0.5055 MB / 367.7 MB, free: 11.93 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.767e-05/0.2575, allocations: 37.7 kB / 367.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002863/0.2578, allocations: 348.4 kB / 368.1 MB, free: 11.54 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001587/0.258, allocations: 170.6 kB / 368.2 MB, free: 11.37 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000252/0.2582, allocations: 150.5 kB / 368.4 MB, free: 11.22 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001853/0.2584, allocations: 362.8 kB / 368.7 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00128/0.2597, allocations: 461.1 kB / 369.2 MB, free: 10.39 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001666/0.2614, allocations: 0.9043 MB / 370.1 MB, free: 9.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002471/0.2638, allocations: 0.9715 MB / 371.1 MB, free: 8.246 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.2638, allocations: 4 kB / 371.1 MB, free: 8.242 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003128/0.267, allocations: 1.193 MB / 372.3 MB, free: 7.02 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.652e-05/0.267, allocations: 59.81 kB / 372.3 MB, free: 6.949 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.377e-05/0.267, allocations: 12 kB / 372.3 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.383e-05/0.267, allocations: 8 kB / 372.3 MB, free: 6.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001058/0.2681, allocations: 223.6 kB / 372.6 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.798e-05/0.2681, allocations: 11.94 kB / 372.6 MB, free: 6.699 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001037/0.2692, allocations: 179.3 kB / 372.7 MB, free: 6.523 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.854e-05/0.2692, allocations: 32 kB / 372.8 MB, free: 6.492 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.0003098/0.2695, allocations: 217.6 kB / 373 MB, free: 6.27 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.608e-05/0.2696, allocations: 59.62 kB / 373 MB, free: 6.211 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001493/0.2698, allocations: 61.52 kB / 373.1 MB, free: 6.145 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.2698, allocations: 4 kB / 373.1 MB, free: 6.141 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.2698, allocations: 3.938 kB / 373.1 MB, free: 6.137 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/0.2698, allocations: 3.984 kB / 373.1 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003313/0.2731, allocations: 1.429 MB / 374.5 MB, free: 4.668 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-06/0.2731, allocations: 7.938 kB / 374.5 MB, free: 4.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008381/0.274, allocations: 147.8 kB / 374.7 MB, free: 4.516 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.518e-06/0.274, allocations: 11.88 kB / 374.7 MB, free: 4.504 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.797e-05/0.274, allocations: 12 kB / 374.7 MB, free: 4.492 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.274, allocations: 0 / 374.7 MB, free: 4.492 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.274, allocations: 0 / 374.7 MB, free: 4.492 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003649/0.2777, allocations: 1.298 MB / 376 MB, free: 3.18 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001353/0.2778, allocations: 59.56 kB / 376.1 MB, free: 3.121 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.109e-05/0.2779, allocations: 15.94 kB / 376.1 MB, free: 3.105 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007915/0.2787, allocations: 107.9 kB / 376.2 MB, free: 3 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001486/0.2788, allocations: 56.41 kB / 376.2 MB, free: 2.945 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.707e-05/0.2789, allocations: 19.98 kB / 376.3 MB, free: 2.926 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005325/0.2794, allocations: 338.9 kB / 376.6 MB, free: 2.598 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2794, allocations: 4 kB / 376.6 MB, free: 2.594 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006205/0.28, allocations: 171.7 kB / 376.8 MB, free: 2.426 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.0001569/0.2802, allocations: 115.2 kB / 376.9 MB, free: 2.305 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00283/0.283, allocations: 1.017 MB / 377.9 MB, free: 1.254 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.283, allocations: 0 / 377.9 MB, free: 1.254 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001166/0.2842, allocations: 406.7 kB / 378.3 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005492/0.2847, allocations: 85.84 kB / 378.4 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002534/0.2873, allocations: 1.18 MB / 379.6 MB, free: 15.56 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002729/0.2876, allocations: 267.3 kB / 379.8 MB, free: 15.28 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003287/0.2879, allocations: 72.55 kB / 379.9 MB, free: 15.21 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002016/0.2881, allocations: 48.5 kB / 379.9 MB, free: 15.16 MB / 350.1 MB Notification: Performance of SimCode: time 4.2e-07/0.2881, allocations: 0 / 379.9 MB, free: 15.16 MB / 350.1 MB Notification: Performance of Templates: time 0.01591/0.304, allocations: 8.28 MB / 388.2 MB, free: 6.859 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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/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.652119631995447]