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.00137/0.00137, allocations: 79.69 kB / 21.7 MB, free: 2.855 MB / 18.57 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.001142/0.001142, allocations: 157.6 kB / 24.99 MB, free: 8.762 MB / 18.57 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.003/1.003, allocations: 177 MB / 205.2 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 179] 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 1.563e-06/1.563e-06, allocations: 0 / 273 MB, free: 1.754 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.89e-05/3.046e-05, allocations: 2.312 kB / 273 MB, free: 1.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.00412/0.00415, allocations: 4.147 MB / 277.2 MB, free: 13.58 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002273/0.006423, allocations: 1.207 MB / 278.4 MB, free: 12.37 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00049/0.006913, allocations: 11.94 kB / 278.4 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002953/0.007208, allocations: 106.8 kB / 278.5 MB, free: 12.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004605/0.007669, allocations: 190.2 kB / 278.7 MB, free: 12.06 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009755/0.008644, allocations: 343.5 kB / 279 MB, free: 11.73 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009744/0.009619, allocations: 1.12 MB / 280.1 MB, free: 10.6 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000333/0.009952, allocations: 194.9 kB / 280.3 MB, free: 10.41 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007014/0.01065, allocations: 0.5966 MB / 280.9 MB, free: 9.812 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004336/0.01109, allocations: 371 kB / 281.3 MB, free: 9.449 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001248/0.01121, allocations: 124 kB / 281.4 MB, free: 9.328 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.998e-05/0.01131, allocations: 116 kB / 281.5 MB, free: 9.215 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001209/0.01143, allocations: 227.3 kB / 281.7 MB, free: 8.992 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002552/0.01169, allocations: 323.3 kB / 282 MB, free: 8.676 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006508/0.01234, allocations: 0.7205 MB / 282.8 MB, free: 7.953 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.01234, allocations: 0 / 282.8 MB, free: 7.953 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.62e-07/0.01234, allocations: 0 / 282.8 MB, free: 7.953 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.285e-05/0.01236, allocations: 0 / 282.8 MB, free: 7.953 MB / 266.7 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.001625/0.01398, allocations: 1.224 MB / 284 MB, free: 6.676 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.01402, allocations: 11.98 kB / 284 MB, free: 6.664 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000175/0.0142, allocations: 136.4 kB / 284.1 MB, free: 6.531 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004546/0.01465, allocations: 426.1 kB / 284.5 MB, free: 6.086 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.725e-05/0.01469, allocations: 45.69 kB / 284.6 MB, free: 6.039 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.357e-05/0.01477, allocations: 68.38 kB / 284.7 MB, free: 5.973 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001077/0.01585, allocations: 1.035 MB / 285.7 MB, free: 4.781 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.01587, allocations: 192 / 285.7 MB, free: 4.781 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.989e-05/0.01592, allocations: 28.38 kB / 285.7 MB, free: 4.754 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002715/0.01619, allocations: 27.92 kB / 285.7 MB, free: 4.727 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006421/0.01683, allocations: 357.6 kB / 286.1 MB, free: 4.375 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002804/0.01963, allocations: 3.038 MB / 289.1 MB, free: 1.211 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007427/0.02038, allocations: 389.3 kB / 289.5 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003361/0.02071, allocations: 197.1 kB / 289.7 MB, free: 0.6211 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.857e-05/0.02075, allocations: 20.48 kB / 289.7 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003713/0.02112, allocations: 255.8 kB / 290 MB, free: 348 kB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.575e-06/0.02112, allocations: 0 / 290 MB, free: 348 kB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.1111/0.1322, allocations: 0.5018 MB / 290.5 MB, free: 28.7 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.35e-05/0.1323, allocations: 375.8 kB / 290.8 MB, free: 28.26 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005293/0.1328, allocations: 0.5203 MB / 291.4 MB, free: 28.08 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.133e-05/0.1329, allocations: 39.83 kB / 291.4 MB, free: 28.05 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001866/0.1331, allocations: 421.8 kB / 291.8 MB, free: 27.88 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.1332, allocations: 175.6 kB / 292 MB, free: 27.79 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001768/0.1334, allocations: 147.8 kB / 292.1 MB, free: 27.75 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.1335, allocations: 0.5388 MB / 292.7 MB, free: 27.26 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003404/0.1338, allocations: 198.1 kB / 292.9 MB, free: 27.2 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004475/0.1343, allocations: 0.881 MB / 293.7 MB, free: 26.28 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006362/0.1349, allocations: 0.6232 MB / 294.4 MB, free: 25.83 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.1349, allocations: 2.375 kB / 294.4 MB, free: 25.83 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001009/0.1359, allocations: 0.7417 MB / 295.1 MB, free: 25.49 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.258e-05/0.136, allocations: 67.8 kB / 295.2 MB, free: 25.43 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.253e-05/0.136, allocations: 7.312 kB / 295.2 MB, free: 25.43 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.395e-05/0.136, allocations: 9.938 kB / 295.2 MB, free: 25.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005285/0.1365, allocations: 191.2 kB / 295.4 MB, free: 25.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.875e-05/0.1366, allocations: 19.7 kB / 295.4 MB, free: 25.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004397/0.137, allocations: 129.4 kB / 295.5 MB, free: 25.37 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.845e-05/0.137, allocations: 31.75 kB / 295.6 MB, free: 25.37 MB / 266.7 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.0001793/0.1372, allocations: 216.3 kB / 295.8 MB, free: 25.17 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.527e-05/0.1373, allocations: 81.97 kB / 295.9 MB, free: 25.13 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.228e-05/0.1374, allocations: 72.53 kB / 295.9 MB, free: 25.08 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.1374, allocations: 4.188 kB / 295.9 MB, free: 25.08 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.959e-06/0.1374, allocations: 2.094 kB / 295.9 MB, free: 25.08 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.1374, allocations: 2.703 kB / 295.9 MB, free: 25.08 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001349/0.1388, allocations: 1.066 MB / 297 MB, free: 24.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.1388, allocations: 1.094 kB / 297 MB, free: 24.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003535/0.1391, allocations: 118.6 kB / 297.1 MB, free: 24.51 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.06e-06/0.1391, allocations: 2.219 kB / 297.1 MB, free: 24.51 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.102e-05/0.1392, allocations: 17.56 kB / 297.1 MB, free: 24.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.1392, allocations: 3.938 kB / 297.1 MB, free: 24.5 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.1392, allocations: 0.6562 kB / 297.1 MB, free: 24.5 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009155/0.1401, allocations: 0.6849 MB / 297.8 MB, free: 24.17 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.175e-05/0.1402, allocations: 69.16 kB / 297.9 MB, free: 24.12 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.714e-05/0.1402, allocations: 13.52 kB / 297.9 MB, free: 24.12 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002791/0.1405, allocations: 62.67 kB / 298 MB, free: 24.11 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.1406, allocations: 53.14 kB / 298 MB, free: 24.09 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.677e-05/0.1406, allocations: 13.2 kB / 298 MB, free: 24.09 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002864/0.1409, allocations: 338.7 kB / 298.4 MB, free: 23.93 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1409, allocations: 1.062 kB / 298.4 MB, free: 23.93 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005005/0.1414, allocations: 185 kB / 298.5 MB, free: 23.89 MB / 266.7 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.0001385/0.1416, allocations: 116.9 kB / 298.7 MB, free: 23.79 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008021/0.1424, allocations: 0.5937 MB / 299.3 MB, free: 23.5 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.1424, allocations: 1 kB / 299.3 MB, free: 23.5 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003002/0.1427, allocations: 192.7 kB / 299.4 MB, free: 23.46 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004256/0.1431, allocations: 127.3 kB / 299.6 MB, free: 23.42 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001726/0.1448, allocations: 1.054 MB / 300.6 MB, free: 22.83 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000103/0.1449, allocations: 129.4 kB / 300.7 MB, free: 22.75 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002793/0.1452, allocations: 83.05 kB / 300.8 MB, free: 22.73 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001588/0.1454, allocations: 57.12 kB / 300.9 MB, free: 22.71 MB / 266.7 MB Notification: Performance of SimCode: time 2.425e-06/0.1454, allocations: 0 / 300.9 MB, free: 22.71 MB / 266.7 MB Notification: Performance of Templates: time 0.01116/0.1565, allocations: 8.759 MB / 309.6 MB, free: 17.66 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) [Timeout 240] 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","",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.018195274984464]