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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|Nand.C4.v|Nand.C7.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00146/0.00146, allocations: 110 kB / 17.68 MB, free: 5.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001736/0.001736, allocations: 190.9 kB / 18.62 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001201/0.001201, allocations: 51.42 kB / 302.1 MB, free: 5.188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09431/0.09553, allocations: 49.43 MB / 351.5 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.00556/0.1011, allocations: 4.232 MB / 355.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002195/0.1034, allocations: 1.172 MB / 356.9 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004294/0.1038, allocations: 11.94 kB / 356.9 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003148/0.1042, allocations: 110.9 kB / 357 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005161/0.1047, allocations: 178.3 kB / 357.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007668/0.1055, allocations: 335.5 kB / 357.5 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001159/0.1066, allocations: 1.093 MB / 358.6 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004271/0.1071, allocations: 286.5 kB / 358.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004962/0.1076, allocations: 410.8 kB / 359.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005576/0.1081, allocations: 458.3 kB / 359.7 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001971/0.1083, allocations: 120 kB / 359.9 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001736/0.1085, allocations: 124 kB / 360 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001987/0.1087, allocations: 223.3 kB / 360.2 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004714/0.1092, allocations: 450 kB / 360.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001123/0.1104, allocations: 1.219 MB / 361.8 MB, free: 9.305 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.1104, allocations: 0 / 361.8 MB, free: 9.305 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.1104, allocations: 0 / 361.8 MB, free: 9.305 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.65e-05/0.1104, allocations: 0 / 361.8 MB, free: 9.305 MB / 302.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.003128/0.1136, allocations: 1.27 MB / 363.1 MB, free: 7.965 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.1136, allocations: 12.03 kB / 363.1 MB, free: 7.953 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000146/0.1138, allocations: 80 kB / 363.2 MB, free: 7.875 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006772/0.1144, allocations: 481.5 kB / 363.7 MB, free: 7.363 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.12e-05/0.1145, allocations: 45.69 kB / 363.7 MB, free: 7.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001119/0.1146, allocations: 56.38 kB / 363.8 MB, free: 7.266 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002062/0.1167, allocations: 0.9723 MB / 364.8 MB, free: 6.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.635e-05/0.1167, allocations: 0 / 364.8 MB, free: 6.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.591e-05/0.1168, allocations: 24 kB / 364.8 MB, free: 6.207 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.637e-05/0.1168, allocations: 12 kB / 364.8 MB, free: 6.195 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002799/0.1196, allocations: 1.003 MB / 365.8 MB, free: 5.195 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004665/0.1243, allocations: 3.18 MB / 369 MB, free: 1.883 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002216/0.1265, allocations: 0.9205 MB / 369.9 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001122/0.1277, allocations: 437.8 kB / 370.3 MB, free: 500 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.387e-05/0.1277, allocations: 16.5 kB / 370.3 MB, free: 484 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001136/0.1289, allocations: 465.1 kB / 370.8 MB, free: 4 kB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.305e-06/0.1289, allocations: 0 / 370.8 MB, free: 4 kB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.1562/0.2851, allocations: 1.091 MB / 371.9 MB, free: 25.67 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.216e-05/0.2852, allocations: 373.4 kB / 372.2 MB, free: 25.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008528/0.2861, allocations: 0.5756 MB / 372.8 MB, free: 25.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.369e-05/0.2862, allocations: 42.17 kB / 372.9 MB, free: 25.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000214/0.2864, allocations: 370.3 kB / 373.2 MB, free: 24.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001187/0.2865, allocations: 167.3 kB / 373.4 MB, free: 24.85 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002485/0.2868, allocations: 139.6 kB / 373.5 MB, free: 24.78 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.728e-05/0.2869, allocations: 374.2 kB / 373.9 MB, free: 24.44 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001182/0.2881, allocations: 404.1 kB / 374.3 MB, free: 24.32 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001437/0.2895, allocations: 0.6813 MB / 375 MB, free: 23.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002115/0.2916, allocations: 0.9707 MB / 375.9 MB, free: 23.33 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.604e-06/0.2917, allocations: 3.688 kB / 375.9 MB, free: 23.33 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002682/0.2943, allocations: 1.136 MB / 377.1 MB, free: 22.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.611e-05/0.2944, allocations: 71.02 kB / 377.1 MB, free: 22.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/0.2944, allocations: 6.25 kB / 377.1 MB, free: 22.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.428e-05/0.2945, allocations: 11.41 kB / 377.2 MB, free: 22.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001085/0.2955, allocations: 222.8 kB / 377.4 MB, free: 22.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.688e-05/0.2956, allocations: 18.81 kB / 377.4 MB, free: 22.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001163/0.2968, allocations: 189.1 kB / 377.6 MB, free: 22.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.633e-05/0.2969, allocations: 31.69 kB / 377.6 MB, free: 22.74 MB / 302.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.0003381/0.2972, allocations: 226.2 kB / 377.8 MB, free: 22.55 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.2973, allocations: 68.8 kB / 377.9 MB, free: 22.52 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001585/0.2975, allocations: 70.84 kB / 378 MB, free: 22.47 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.467e-06/0.2975, allocations: 4.844 kB / 378 MB, free: 22.47 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.531e-05/0.2975, allocations: 1.406 kB / 378 MB, free: 22.47 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.2975, allocations: 2.625 kB / 378 MB, free: 22.47 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0034/0.3009, allocations: 1.682 MB / 379.7 MB, free: 21.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.58e-06/0.301, allocations: 0.9688 kB / 379.7 MB, free: 21.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000837/0.3018, allocations: 149.2 kB / 379.8 MB, free: 21.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.634e-06/0.3018, allocations: 2.156 kB / 379.8 MB, free: 21.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.329e-05/0.3019, allocations: 10.56 kB / 379.8 MB, free: 21.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.3019, allocations: 2.406 kB / 379.8 MB, free: 21.66 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.3019, allocations: 0.7969 kB / 379.8 MB, free: 21.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003154/0.3051, allocations: 1.298 MB / 381.1 MB, free: 21.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001655/0.3053, allocations: 145 kB / 381.3 MB, free: 21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001079/0.3054, allocations: 18.02 kB / 381.3 MB, free: 20.99 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007879/0.3062, allocations: 105 kB / 381.4 MB, free: 20.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/0.3063, allocations: 49.38 kB / 381.4 MB, free: 20.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.683e-05/0.3064, allocations: 15.8 kB / 381.4 MB, free: 20.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005826/0.307, allocations: 406.2 kB / 381.8 MB, free: 20.78 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.307, allocations: 0 / 381.8 MB, free: 20.78 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006755/0.3077, allocations: 180.5 kB / 382 MB, free: 20.74 MB / 302.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.0001609/0.3078, allocations: 125.3 kB / 382.1 MB, free: 20.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002431/0.3103, allocations: 0.9995 MB / 383.1 MB, free: 20.25 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.3103, allocations: 1.031 kB / 383.1 MB, free: 20.25 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001052/0.3113, allocations: 408.2 kB / 383.5 MB, free: 20.13 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005916/0.3119, allocations: 110.5 kB / 383.6 MB, free: 20.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002165/0.3141, allocations: 1.245 MB / 384.9 MB, free: 19.42 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002961/0.3144, allocations: 0.8804 MB / 385.8 MB, free: 18.71 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003722/0.3148, allocations: 83.75 kB / 385.9 MB, free: 18.69 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002125/0.315, allocations: 52.86 kB / 385.9 MB, free: 18.68 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.315, allocations: 4 kB / 385.9 MB, free: 18.67 MB / 302.1 MB Notification: Performance of Templates: time 0.01223/0.3273, allocations: 8.692 MB / 394.6 MB, free: 14.08 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.makefile (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 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches