Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001756/0.001756, allocations: 69.64 kB / 21.24 MB, free: 0.5547 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.001996/0.001996, allocations: 160.9 kB / 24.5 MB, free: 3.715 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.573/1.573, allocations: 177.2 MB / 204.9 MB, free: 9 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Electrical.Analog.Examples.NandGate") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001805/0.001805, allocations: 56.81 kB / 325.6 MB, free: 248 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09996/0.1018, allocations: 53.34 MB / 378.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005722/0.1075, allocations: 3.82 MB / 382.7 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00242/0.1099, allocations: 1.199 MB / 383.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003918/0.1103, allocations: 11.94 kB / 383.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003335/0.1106, allocations: 110.8 kB / 384.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000522/0.1111, allocations: 178.3 kB / 384.2 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007779/0.1119, allocations: 339.6 kB / 384.6 MB, free: 9.977 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00145/0.1134, allocations: 1.089 MB / 385.6 MB, free: 8.883 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003794/0.1138, allocations: 187 kB / 385.8 MB, free: 8.695 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005788/0.1143, allocations: 414.7 kB / 386.2 MB, free: 8.289 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007015/0.115, allocations: 406.3 kB / 386.6 MB, free: 7.891 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002844/0.1153, allocations: 120 kB / 386.7 MB, free: 7.773 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002622/0.1156, allocations: 120 kB / 386.9 MB, free: 7.656 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000264/0.1158, allocations: 223.3 kB / 387.1 MB, free: 7.438 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006665/0.1165, allocations: 378.5 kB / 387.5 MB, free: 7.066 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001481/0.118, allocations: 1.23 MB / 388.7 MB, free: 5.832 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.118, allocations: 3.938 kB / 388.7 MB, free: 5.828 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.118, allocations: 0 / 388.7 MB, free: 5.828 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.739e-05/0.1181, allocations: 0 / 388.7 MB, free: 5.828 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.003458/0.1215, allocations: 1.202 MB / 389.9 MB, free: 4.574 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.1215, allocations: 12.03 kB / 389.9 MB, free: 4.562 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001952/0.1217, allocations: 88.42 kB / 390 MB, free: 4.477 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007776/0.1225, allocations: 424.1 kB / 390.4 MB, free: 4.035 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.139e-05/0.1226, allocations: 45.69 kB / 390.4 MB, free: 3.992 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001215/0.1227, allocations: 56.38 kB / 390.5 MB, free: 3.938 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002515/0.1252, allocations: 1.274 MB / 391.8 MB, free: 2.531 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.068e-05/0.1252, allocations: 3.938 kB / 391.8 MB, free: 2.527 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.85e-05/0.1253, allocations: 31.98 kB / 391.8 MB, free: 2.496 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.424e-05/0.1253, allocations: 12 kB / 391.8 MB, free: 2.484 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0031/0.1284, allocations: 0.9991 MB / 392.8 MB, free: 1.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004928/0.1333, allocations: 2.823 MB / 395.6 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002391/0.1357, allocations: 0.732 MB / 396.4 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001234/0.137, allocations: 422 kB / 396.8 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.028e-05/0.137, allocations: 20.42 kB / 396.8 MB, free: 13.37 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001264/0.1383, allocations: 462 kB / 397.3 MB, free: 12.9 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 2.304e-06/0.1383, allocations: 0 / 397.3 MB, free: 12.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=50): time 0.003456/0.1417, allocations: 1.098 MB / 398.4 MB, free: 11.8 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002286/0.142, allocations: 376.3 kB / 398.7 MB, free: 11.34 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008352/0.1428, allocations: 0.5376 MB / 399.3 MB, free: 10.79 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.812e-05/0.1429, allocations: 45.7 kB / 399.3 MB, free: 10.74 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003184/0.1432, allocations: 376.3 kB / 399.7 MB, free: 10.37 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001728/0.1434, allocations: 182.5 kB / 399.9 MB, free: 10.19 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002652/0.1436, allocations: 146.6 kB / 400 MB, free: 10.04 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001841/0.1438, allocations: 366.8 kB / 400.4 MB, free: 9.676 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001318/0.1451, allocations: 461.1 kB / 400.8 MB, free: 9.211 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00175/0.1469, allocations: 1.036 MB / 401.8 MB, free: 7.965 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002511/0.1494, allocations: 0.9715 MB / 402.8 MB, free: 6.898 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.63e-06/0.1494, allocations: 0 / 402.8 MB, free: 6.898 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003126/0.1525, allocations: 1.194 MB / 404 MB, free: 5.668 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.498e-05/0.1526, allocations: 75.39 kB / 404.1 MB, free: 5.582 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.373e-05/0.1526, allocations: 8 kB / 404.1 MB, free: 5.574 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.438e-05/0.1526, allocations: 8 kB / 404.1 MB, free: 5.566 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001056/0.1537, allocations: 215.6 kB / 404.3 MB, free: 5.355 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.322e-05/0.1537, allocations: 19.92 kB / 404.3 MB, free: 5.336 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001087/0.1548, allocations: 187.3 kB / 404.5 MB, free: 5.152 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.221e-05/0.1549, allocations: 28 kB / 404.5 MB, free: 5.125 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.0003233/0.1552, allocations: 226.2 kB / 404.8 MB, free: 4.895 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001156/0.1553, allocations: 71.55 kB / 404.8 MB, free: 4.824 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000151/0.1555, allocations: 65.95 kB / 404.9 MB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.1555, allocations: 7.984 kB / 404.9 MB, free: 4.75 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.1555, allocations: 0 / 404.9 MB, free: 4.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.1555, allocations: 4 kB / 404.9 MB, free: 4.746 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003432/0.1589, allocations: 1.456 MB / 406.4 MB, free: 3.254 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.1589, allocations: 0 / 406.4 MB, free: 3.254 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008202/0.1597, allocations: 151.8 kB / 406.5 MB, free: 3.105 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.515e-06/0.1597, allocations: 0 / 406.5 MB, free: 3.105 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.706e-05/0.1598, allocations: 15.98 kB / 406.5 MB, free: 3.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/0.1598, allocations: 4 kB / 406.5 MB, free: 3.086 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.1598, allocations: 4 kB / 406.5 MB, free: 3.082 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003512/0.1633, allocations: 1.298 MB / 407.8 MB, free: 1.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001209/0.1634, allocations: 71.44 kB / 407.9 MB, free: 1.699 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.361e-05/0.1635, allocations: 12 kB / 407.9 MB, free: 1.688 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007964/0.1643, allocations: 103.9 kB / 408 MB, free: 1.586 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001299/0.1645, allocations: 52.41 kB / 408.1 MB, free: 1.531 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.238e-05/0.1645, allocations: 12 kB / 408.1 MB, free: 1.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005441/0.165, allocations: 370.8 kB / 408.4 MB, free: 1.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.165, allocations: 3.938 kB / 408.4 MB, free: 1.156 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006038/0.1656, allocations: 187.7 kB / 408.6 MB, free: 0.9727 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.0001559/0.1658, allocations: 117.9 kB / 408.7 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002703/0.1685, allocations: 1.021 MB / 409.8 MB, free: 15.79 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.1685, allocations: 0 / 409.8 MB, free: 15.79 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00115/0.1697, allocations: 402.7 kB / 410.2 MB, free: 15.4 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005571/0.1702, allocations: 98.17 kB / 410.2 MB, free: 15.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002537/0.1728, allocations: 1.247 MB / 411.5 MB, free: 14.03 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002964/0.173, allocations: 288.4 kB / 411.8 MB, free: 13.72 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003641/0.1734, allocations: 80.66 kB / 411.9 MB, free: 13.64 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002067/0.1736, allocations: 52.48 kB / 411.9 MB, free: 13.59 MB / 382.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1736, allocations: 0 / 411.9 MB, free: 13.59 MB / 382.1 MB Notification: Performance of Templates: time 0.01618/0.1898, allocations: 8.799 MB / 420.7 MB, free: 4.922 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 4.679072436061688]