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.001709/0.00171, allocations: 119.4 kB / 18.41 MB, free: 4.648 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.002079/0.002079, allocations: 192.3 kB / 21.35 MB, free: 1.715 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.571/1.571, allocations: 222.9 MB / 247 MB, free: 4.207 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 0.001508/0.001508, allocations: 51.91 kB / 358.7 MB, free: 8.312 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09128/0.0928, allocations: 49.44 MB / 408.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005454/0.09829, allocations: 4.233 MB / 412.3 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002184/0.1005, allocations: 1.176 MB / 413.5 MB, free: 1.402 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002682/0.1008, allocations: 12 kB / 413.5 MB, free: 1.391 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002613/0.1011, allocations: 106.8 kB / 413.6 MB, free: 1.285 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003593/0.1015, allocations: 178.3 kB / 413.8 MB, free: 1.109 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006481/0.1021, allocations: 323.6 kB / 414.1 MB, free: 0.793 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001133/0.1033, allocations: 1.097 MB / 415.2 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004167/0.1037, allocations: 290.5 kB / 415.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004796/0.1042, allocations: 406.8 kB / 415.9 MB, free: 15 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005246/0.1047, allocations: 466.1 kB / 416.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001621/0.1049, allocations: 120 kB / 416.5 MB, free: 14.42 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001704/0.1051, allocations: 120 kB / 416.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002118/0.1053, allocations: 223.3 kB / 416.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004449/0.1057, allocations: 446 kB / 417.2 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001254/0.107, allocations: 1.222 MB / 418.5 MB, free: 12.42 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.107, allocations: 7.938 kB / 418.5 MB, free: 12.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.657e-06/0.107, allocations: 0 / 418.5 MB, free: 12.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.527e-05/0.107, allocations: 3.938 kB / 418.5 MB, free: 12.41 MB / 350.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.003062/0.1101, allocations: 1.281 MB / 419.8 MB, free: 11.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.1102, allocations: 12.03 kB / 419.8 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001633/0.1103, allocations: 84.42 kB / 419.9 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007271/0.1111, allocations: 482 kB / 420.3 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.158e-05/0.1111, allocations: 53.67 kB / 420.4 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001141/0.1113, allocations: 56.38 kB / 420.4 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002358/0.1136, allocations: 0.9723 MB / 421.4 MB, free: 9.316 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.068e-05/0.1137, allocations: 0 / 421.4 MB, free: 9.316 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.144e-05/0.1137, allocations: 31.94 kB / 421.4 MB, free: 9.285 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.629e-05/0.1138, allocations: 16 kB / 421.5 MB, free: 9.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003179/0.1169, allocations: 0.9991 MB / 422.5 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0052/0.1222, allocations: 3.181 MB / 425.6 MB, free: 4.953 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002546/0.1247, allocations: 0.9091 MB / 426.5 MB, free: 4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001316/0.1261, allocations: 443.1 kB / 427 MB, free: 3.566 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.47e-05/0.1262, allocations: 20.41 kB / 427 MB, free: 3.547 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001279/0.1274, allocations: 465 kB / 427.4 MB, free: 3.078 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.525e-06/0.1275, allocations: 0 / 427.4 MB, free: 3.078 MB / 350.1 MB Notification: Performance of matching and sorting (n=50): time 0.003541/0.131, allocations: 1.1 MB / 428.5 MB, free: 1.973 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002212/0.1312, allocations: 372.3 kB / 428.9 MB, free: 1.523 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009136/0.1322, allocations: 0.5732 MB / 429.5 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.107e-05/0.1322, allocations: 45.7 kB / 429.5 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003117/0.1326, allocations: 380.4 kB / 429.9 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001667/0.1327, allocations: 174.5 kB / 430.1 MB, free: 348 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002756/0.133, allocations: 142.6 kB / 430.2 MB, free: 200 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.1784/0.3114, allocations: 373.8 kB / 430.6 MB, free: 22.42 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001445/0.3129, allocations: 402.2 kB / 431 MB, free: 22.42 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001258/0.3141, allocations: 0.6722 MB / 431.6 MB, free: 22.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002164/0.3163, allocations: 0.9721 MB / 432.6 MB, free: 21.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.722e-06/0.3163, allocations: 5.406 kB / 432.6 MB, free: 21.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002913/0.3193, allocations: 1.135 MB / 433.8 MB, free: 21.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.266e-05/0.3193, allocations: 62.81 kB / 433.8 MB, free: 21.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.3194, allocations: 14.27 kB / 433.8 MB, free: 21.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.89e-05/0.3194, allocations: 9.891 kB / 433.8 MB, free: 21.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001054/0.3205, allocations: 223.2 kB / 434.1 MB, free: 21.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.602e-05/0.3205, allocations: 15.36 kB / 434.1 MB, free: 21.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001079/0.3216, allocations: 183.4 kB / 434.2 MB, free: 21.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.544e-05/0.3216, allocations: 35.75 kB / 434.3 MB, free: 21.62 MB / 350.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.0002865/0.3219, allocations: 228 kB / 434.5 MB, free: 21.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.746e-05/0.322, allocations: 69.88 kB / 434.6 MB, free: 21.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001495/0.3222, allocations: 71.2 kB / 434.6 MB, free: 21.49 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.3222, allocations: 5.109 kB / 434.6 MB, free: 21.49 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.934e-06/0.3222, allocations: 3.938 kB / 434.7 MB, free: 21.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.125e-05/0.3222, allocations: 3.375 kB / 434.7 MB, free: 21.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003644/0.3259, allocations: 1.675 MB / 436.3 MB, free: 21.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.581e-06/0.3259, allocations: 5.125 kB / 436.3 MB, free: 21.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008055/0.3267, allocations: 150 kB / 436.5 MB, free: 21.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.563e-06/0.3268, allocations: 1.562 kB / 436.5 MB, free: 21.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.725e-05/0.3268, allocations: 10.09 kB / 436.5 MB, free: 21.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.19e-06/0.3268, allocations: 1.906 kB / 436.5 MB, free: 21.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.3268, allocations: 4.562 kB / 436.5 MB, free: 21.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003457/0.3303, allocations: 1.305 MB / 437.8 MB, free: 20.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001866/0.3305, allocations: 155.1 kB / 438 MB, free: 20.83 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001124/0.3306, allocations: 17.36 kB / 438 MB, free: 20.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008064/0.3314, allocations: 101.4 kB / 438.1 MB, free: 20.83 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001554/0.3316, allocations: 50.73 kB / 438.1 MB, free: 20.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.563e-05/0.3317, allocations: 16.5 kB / 438.1 MB, free: 20.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006147/0.3323, allocations: 402.4 kB / 438.5 MB, free: 20.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3323, allocations: 0 / 438.5 MB, free: 20.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006429/0.3329, allocations: 177.3 kB / 438.7 MB, free: 20.73 MB / 350.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.0001416/0.3331, allocations: 125.8 kB / 438.8 MB, free: 20.63 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002664/0.3358, allocations: 0.9996 MB / 439.8 MB, free: 20.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.3358, allocations: 0 / 439.8 MB, free: 20.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0012/0.337, allocations: 409.4 kB / 440.2 MB, free: 20.44 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007508/0.3378, allocations: 115.5 kB / 440.3 MB, free: 20.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002465/0.3402, allocations: 1.281 MB / 441.6 MB, free: 19.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003207/0.3406, allocations: 0.8891 MB / 442.5 MB, free: 19.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003526/0.3409, allocations: 62.12 kB / 442.6 MB, free: 19.15 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3409, allocations: 4 kB / 442.6 MB, free: 19.15 MB / 350.1 MB Notification: Performance of Templates: time 0.01647/0.3574, allocations: 9.323 MB / 451.9 MB, free: 16.18 MB / 350.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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 7.830092060030438]