Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001813/0.001813, allocations: 118 kB / 18.46 MB, free: 4.613 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002255/0.002255, allocations: 207.4 kB / 21.4 MB, free: 1.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.611/1.611, allocations: 227.4 MB / 251.6 MB, free: 104 kB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001838/0.001838, allocations: 67.89 kB / 365.5 MB, free: 15.81 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1109, allocations: 50.55 MB / 416 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005729/0.1167, allocations: 4.25 MB / 420.3 MB, free: 8.945 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002392/0.1191, allocations: 1.203 MB / 421.5 MB, free: 7.734 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003124/0.1194, allocations: 12 kB / 421.5 MB, free: 7.723 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003634/0.1198, allocations: 110.8 kB / 421.6 MB, free: 7.613 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000396/0.1202, allocations: 178.3 kB / 421.8 MB, free: 7.438 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007728/0.121, allocations: 323.6 kB / 422.1 MB, free: 7.121 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001267/0.1223, allocations: 1.097 MB / 423.2 MB, free: 6.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004923/0.1228, allocations: 290.6 kB / 423.5 MB, free: 5.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006138/0.1234, allocations: 410.7 kB / 423.9 MB, free: 5.328 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006272/0.1241, allocations: 458.3 kB / 424.3 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001706/0.1243, allocations: 120 kB / 424.5 MB, free: 4.762 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002725/0.1245, allocations: 120 kB / 424.6 MB, free: 4.645 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003462/0.1249, allocations: 223.3 kB / 424.8 MB, free: 4.426 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005049/0.1254, allocations: 450 kB / 425.2 MB, free: 3.984 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001549/0.127, allocations: 1.226 MB / 426.5 MB, free: 2.754 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.127, allocations: 0 / 426.5 MB, free: 2.754 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.127, allocations: 0 / 426.5 MB, free: 2.754 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.919e-05/0.127, allocations: 0 / 426.5 MB, free: 2.754 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.003116/0.1301, allocations: 1.281 MB / 427.7 MB, free: 1.402 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.1302, allocations: 8.031 kB / 427.7 MB, free: 1.395 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001846/0.1304, allocations: 92.41 kB / 427.8 MB, free: 1.305 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008074/0.1312, allocations: 482 kB / 428.3 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.882e-05/0.1313, allocations: 49.62 kB / 428.4 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001163/0.1314, allocations: 60.36 kB / 428.4 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00245/0.1338, allocations: 0.9667 MB / 429.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/0.1339, allocations: 7.938 kB / 429.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.755e-05/0.134, allocations: 28 kB / 429.4 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.841e-05/0.134, allocations: 16 kB / 429.4 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00315/0.1371, allocations: 0.9991 MB / 430.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005558/0.1427, allocations: 3.204 MB / 433.6 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002599/0.1453, allocations: 0.9032 MB / 434.5 MB, free: 10.33 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001331/0.1467, allocations: 445.7 kB / 435 MB, free: 9.891 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.531e-05/0.1468, allocations: 24.56 kB / 435 MB, free: 9.867 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001272/0.148, allocations: 465.1 kB / 435.5 MB, free: 9.398 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 3.316e-06/0.148, allocations: 0 / 435.5 MB, free: 9.398 MB / 366.1 MB Notification: Performance of matching and sorting (n=50): time 0.003652/0.1517, allocations: 1.096 MB / 436.5 MB, free: 8.297 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002475/0.152, allocations: 372.3 kB / 436.9 MB, free: 7.848 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008805/0.1528, allocations: 0.5771 MB / 437.5 MB, free: 7.258 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.28e-05/0.1529, allocations: 41.7 kB / 437.5 MB, free: 7.211 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003143/0.1533, allocations: 380.4 kB / 437.9 MB, free: 6.836 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001748/0.1534, allocations: 174.5 kB / 438.1 MB, free: 6.664 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002634/0.1537, allocations: 138.6 kB / 438.2 MB, free: 6.523 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002194/0.1539, allocations: 378.8 kB / 438.6 MB, free: 6.145 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001245/0.1552, allocations: 397.7 kB / 439 MB, free: 5.758 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001508/0.1567, allocations: 0.6772 MB / 439.6 MB, free: 4.953 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002456/0.1592, allocations: 0.9739 MB / 440.6 MB, free: 3.883 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.749e-06/0.1592, allocations: 7.938 kB / 440.6 MB, free: 3.875 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003136/0.1623, allocations: 1.142 MB / 441.8 MB, free: 2.715 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.614e-05/0.1624, allocations: 67.39 kB / 441.8 MB, free: 2.637 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001289/0.1626, allocations: 4 kB / 441.8 MB, free: 2.633 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.691e-05/0.1626, allocations: 12 kB / 441.8 MB, free: 2.621 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001017/0.1636, allocations: 219.7 kB / 442.1 MB, free: 2.406 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.063e-05/0.1636, allocations: 19.92 kB / 442.1 MB, free: 2.387 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001022/0.1647, allocations: 191.2 kB / 442.3 MB, free: 2.199 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.36e-05/0.1648, allocations: 32 kB / 442.3 MB, free: 2.168 MB / 366.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.0003747/0.1651, allocations: 229.5 kB / 442.5 MB, free: 1.934 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001078/0.1653, allocations: 71.56 kB / 442.6 MB, free: 1.863 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001641/0.1654, allocations: 70.41 kB / 442.7 MB, free: 1.785 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.117e-05/0.1654, allocations: 12 kB / 442.7 MB, free: 1.773 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.1655, allocations: 0 / 442.7 MB, free: 1.773 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.942e-06/0.1655, allocations: 0 / 442.7 MB, free: 1.773 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003491/0.169, allocations: 1.669 MB / 444.3 MB, free: 48 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.169, allocations: 11.88 kB / 444.4 MB, free: 36 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2278/0.3967, allocations: 143.1 kB / 444.5 MB, free: 30.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.514e-06/0.3968, allocations: 2.938 kB / 444.5 MB, free: 30.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.369e-05/0.3969, allocations: 12.86 kB / 444.5 MB, free: 30.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.789e-06/0.3969, allocations: 1.906 kB / 444.5 MB, free: 30.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3969, allocations: 2.484 kB / 444.5 MB, free: 30.16 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003161/0.4, allocations: 1.305 MB / 445.8 MB, free: 30.03 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001508/0.4002, allocations: 152.1 kB / 446 MB, free: 29.94 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001072/0.4003, allocations: 13.52 kB / 446 MB, free: 29.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007202/0.4011, allocations: 108.2 kB / 446.1 MB, free: 29.94 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001237/0.4012, allocations: 50.09 kB / 446.1 MB, free: 29.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.197e-05/0.4012, allocations: 15.81 kB / 446.2 MB, free: 29.94 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005111/0.4017, allocations: 402 kB / 446.5 MB, free: 29.85 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4018, allocations: 2.625 kB / 446.5 MB, free: 29.85 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006037/0.4024, allocations: 178.5 kB / 446.7 MB, free: 29.85 MB / 366.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.000142/0.4025, allocations: 121.7 kB / 446.8 MB, free: 29.76 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002369/0.4049, allocations: 0.9985 MB / 447.8 MB, free: 29.63 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.4049, allocations: 2.062 kB / 447.8 MB, free: 29.63 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001122/0.406, allocations: 408 kB / 448.2 MB, free: 29.63 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006076/0.4067, allocations: 98.83 kB / 448.3 MB, free: 29.63 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002341/0.409, allocations: 1.251 MB / 449.6 MB, free: 29.15 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004042/0.4094, allocations: 0.8785 MB / 450.5 MB, free: 28.45 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004189/0.4098, allocations: 82.83 kB / 450.5 MB, free: 28.42 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002138/0.4101, allocations: 54.41 kB / 450.6 MB, free: 28.41 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4101, allocations: 2.531 kB / 450.6 MB, free: 28.41 MB / 366.1 MB Notification: Performance of Templates: time 0.0182/0.4283, allocations: 8.865 MB / 459.5 MB, free: 27.13 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 5.20591083727777]