Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.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.0009815/0.0009815, allocations: 80.92 kB / 22.28 MB, free: 2.207 MB / 18.57 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.001146/0.001146, allocations: 169.9 kB / 25.7 MB, free: 8.418 MB / 18.57 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 0.9059/0.9059, allocations: 158.6 MB / 187.6 MB, free: 2.781 MB / 170.7 MB " [Timeout remaining time 179] 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.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5016,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand") translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5016,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.042e-06/1.042e-06, allocations: 0 / 251.6 MB, free: 7.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.374e-05/1.478e-05, allocations: 6.25 kB / 251.6 MB, free: 7.234 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.008074/0.008089, allocations: 12.46 MB / 264 MB, free: 10.71 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01454/0.02263, allocations: 18.44 MB / 282.5 MB, free: 8.195 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007767/0.02341, allocations: 197.8 kB / 282.7 MB, free: 8 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001447/0.02485, allocations: 1.053 MB / 283.7 MB, free: 6.938 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003021/0.02788, allocations: 2.312 MB / 286 MB, free: 4.609 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001771/0.02965, allocations: 1.344 MB / 287.4 MB, free: 3.254 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005642/0.03529, allocations: 6.497 MB / 293.9 MB, free: 12.74 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005088/0.0358, allocations: 281.7 kB / 294.1 MB, free: 12.42 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003453/0.03925, allocations: 2.783 MB / 296.9 MB, free: 9.633 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00108/0.04033, allocations: 0.7592 MB / 297.7 MB, free: 8.871 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001521/0.04048, allocations: 68 kB / 297.7 MB, free: 8.805 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002917/0.0434, allocations: 1.128 MB / 298.9 MB, free: 7.676 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002513/0.04365, allocations: 321.8 kB / 299.2 MB, free: 7.359 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007608/0.04441, allocations: 0.7048 MB / 299.9 MB, free: 6.652 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003054/0.04747, allocations: 2.739 MB / 302.6 MB, free: 3.902 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.04747, allocations: 0 / 302.6 MB, free: 3.902 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.01e-07/0.04747, allocations: 0 / 302.6 MB, free: 3.902 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.738e-05/0.04749, allocations: 0 / 302.6 MB, free: 3.902 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.0037/0.05119, allocations: 3.498 MB / 306.1 MB, free: 360 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.05123, allocations: 15.98 kB / 306.1 MB, free: 344 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003164/0.05154, allocations: 267.7 kB / 306.4 MB, free: 76 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002889/0.05443, allocations: 2.122 MB / 308.5 MB, free: 13.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.451e-05/0.05447, allocations: 33 kB / 308.6 MB, free: 13.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001114/0.05458, allocations: 51.95 kB / 308.6 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007597/0.05534, allocations: 451.4 kB / 309.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/0.05535, allocations: 0 / 309.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.772e-05/0.05541, allocations: 20 kB / 309.1 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.339e-05/0.05544, allocations: 19.98 kB / 309.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005067/0.05594, allocations: 207.8 kB / 309.3 MB, free: 13.06 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003105/0.05905, allocations: 1.441 MB / 310.7 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004374/0.05949, allocations: 321.1 kB / 311.1 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004148/0.0599, allocations: 327.2 kB / 311.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03082/0.09072, allocations: 23.01 MB / 334.4 MB, free: 3.082 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002562/0.09098, allocations: 210.1 kB / 334.6 MB, free: 2.863 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 1.903e-06/0.09098, allocations: 8 kB / 334.6 MB, free: 2.855 MB / 314.7 MB Notification: Performance of matching and sorting (n=49): time 0.0009908/0.09197, allocations: 0.6595 MB / 335.3 MB, free: 2.188 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.016e-05/0.092, allocations: 59.34 kB / 335.3 MB, free: 2.117 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001483/0.09349, allocations: 2.536 MB / 337.8 MB, free: 15.55 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.231e-05/0.09352, allocations: 33.7 kB / 337.9 MB, free: 15.51 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003705/0.09389, allocations: 0.7153 MB / 338.6 MB, free: 14.79 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.445e-05/0.09398, allocations: 178.5 kB / 338.8 MB, free: 14.61 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001565/0.09414, allocations: 178.3 kB / 338.9 MB, free: 14.43 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.384e-05/0.09422, allocations: 345.9 kB / 339.3 MB, free: 14.09 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001025/0.09433, allocations: 73.97 kB / 339.4 MB, free: 14.02 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002581/0.09458, allocations: 450.9 kB / 339.8 MB, free: 13.42 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004573/0.09504, allocations: 0.6076 MB / 340.4 MB, free: 12.64 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.09505, allocations: 0 / 340.4 MB, free: 12.64 MB / 330.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.0006963/0.09574, allocations: 0.7084 MB / 341.1 MB, free: 11.92 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.09576, allocations: 12 kB / 341.1 MB, free: 11.91 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.414e-05/0.09581, allocations: 23.98 kB / 341.1 MB, free: 11.88 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002632/0.09608, allocations: 140.8 kB / 341.3 MB, free: 11.74 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00032/0.0964, allocations: 187.7 kB / 341.5 MB, free: 11.56 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004528/0.09685, allocations: 0.6498 MB / 342.1 MB, free: 10.88 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004174/0.09727, allocations: 103.3 kB / 342.2 MB, free: 10.78 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.33e-05/0.09733, allocations: 44 kB / 342.3 MB, free: 10.74 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 (vin1.counter,$PRE.vin1.counter,vin2.counter,$PRE.vin2.counter,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0002549/0.09759, allocations: 169.4 kB / 342.4 MB, free: 10.56 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001756/0.09776, allocations: 239.7 kB / 342.7 MB, free: 10.33 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001094/0.09886, allocations: 0.8129 MB / 343.5 MB, free: 9.5 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.09886, allocations: 4 kB / 343.5 MB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-06/0.09886, allocations: 0 / 343.5 MB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.09887, allocations: 3.984 kB / 343.5 MB, free: 9.492 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001424/0.1003, allocations: 1.595 MB / 345.1 MB, free: 7.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-05/0.1003, allocations: 8 kB / 345.1 MB, free: 7.832 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001395/0.1005, allocations: 64.08 kB / 345.1 MB, free: 7.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002139/0.1007, allocations: 124.8 kB / 345.3 MB, free: 7.645 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.822e-05/0.1007, allocations: 19.92 kB / 345.3 MB, free: 7.625 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003705/0.1011, allocations: 0.6303 MB / 345.9 MB, free: 6.969 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.1011, allocations: 0 / 345.9 MB, free: 6.969 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005037/0.1016, allocations: 0.5932 MB / 346.5 MB, free: 6.344 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003412/0.1019, allocations: 381.2 kB / 346.9 MB, free: 5.973 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001511/0.1021, allocations: 16 kB / 346.9 MB, free: 5.957 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002925/0.1024, allocations: 20.02 kB / 346.9 MB, free: 5.938 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.53e-05/0.1025, allocations: 51.86 kB / 347 MB, free: 5.887 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.067e-05/0.1025, allocations: 12 kB / 347 MB, free: 5.875 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008439/0.1033, allocations: 1.341 MB / 348.3 MB, free: 4.523 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1033, allocations: 0 / 348.3 MB, free: 4.523 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008056/0.1041, allocations: 0.5735 MB / 348.9 MB, free: 3.949 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001002/0.1051, allocations: 0.9307 MB / 349.8 MB, free: 3 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006119/0.1058, allocations: 490.9 kB / 350.3 MB, free: 2.496 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.021e-05/0.1058, allocations: 36.5 kB / 350.3 MB, free: 2.461 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002916/0.1061, allocations: 271.9 kB / 350.6 MB, free: 2.172 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009751/0.1071, allocations: 0.5132 MB / 351.1 MB, free: 1.652 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1197/0.2267, allocations: 3.763 MB / 354.9 MB, free: 76.77 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002363/0.227, allocations: 371.2 kB / 355.2 MB, free: 76.67 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008283/0.2278, allocations: 389.8 kB / 355.6 MB, free: 76.64 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006073/0.2284, allocations: 0.5542 MB / 356.2 MB, free: 76.6 MB / 330.7 MB Notification: Performance of SimCode: time 2.505e-06/0.2284, allocations: 0 / 356.2 MB, free: 76.6 MB / 330.7 MB Notification: Performance of Templates: time 0.04205/0.2704, allocations: 37.43 MB / 393.6 MB, free: 49.55 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.406849562190473]