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.002089/0.002089, allocations: 114.9 kB / 16.63 MB, free: 6.812 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.001988/0.001988, allocations: 186 kB / 17.55 MB, free: 5.934 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.426/1.426, allocations: 222.9 MB / 241.2 MB, free: 13.67 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009761/0.0009762, allocations: 43.81 kB / 300.1 MB, free: 5.965 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09447/0.09546, allocations: 49.45 MB / 349.6 MB, free: 4.504 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005587/0.1011, allocations: 4.24 MB / 353.8 MB, free: 240 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002039/0.1032, allocations: 1.164 MB / 355 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002452/0.1034, allocations: 11.94 kB / 355 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002565/0.1037, allocations: 75.41 kB / 355.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003299/0.1041, allocations: 150.7 kB / 355.2 MB, free: 14.83 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006055/0.1047, allocations: 295.7 kB / 355.5 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009596/0.1057, allocations: 1.089 MB / 356.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004077/0.1061, allocations: 282.6 kB / 356.9 MB, free: 13.17 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003948/0.1065, allocations: 406.7 kB / 357.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004532/0.1069, allocations: 462.3 kB / 357.7 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001379/0.1071, allocations: 120 kB / 357.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001503/0.1072, allocations: 120 kB / 357.9 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001869/0.1074, allocations: 223.3 kB / 358.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003796/0.1078, allocations: 458 kB / 358.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009412/0.1088, allocations: 1.215 MB / 359.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.1088, allocations: 0 / 359.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1088, allocations: 0 / 359.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.353e-05/0.1088, allocations: 0 / 359.8 MB, free: 10.2 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.002825/0.1116, allocations: 1.263 MB / 361.1 MB, free: 8.863 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.1117, allocations: 8.031 kB / 361.1 MB, free: 8.855 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001583/0.1119, allocations: 88 kB / 361.2 MB, free: 8.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005721/0.1124, allocations: 477.5 kB / 361.7 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.159e-05/0.1125, allocations: 45.69 kB / 361.7 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001073/0.1126, allocations: 60.38 kB / 361.8 MB, free: 8.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002142/0.1148, allocations: 0.9645 MB / 362.7 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/0.1148, allocations: 4 kB / 362.7 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.424e-05/0.1149, allocations: 24 kB / 362.7 MB, free: 7.105 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.406e-05/0.1149, allocations: 16 kB / 362.8 MB, free: 7.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002796/0.1177, allocations: 1.003 MB / 363.8 MB, free: 6.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004577/0.1223, allocations: 3.196 MB / 367 MB, free: 2.762 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002233/0.1245, allocations: 0.9045 MB / 367.9 MB, free: 1.812 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001152/0.1257, allocations: 445.8 kB / 368.3 MB, free: 1.371 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.267e-05/0.1257, allocations: 16.48 kB / 368.3 MB, free: 1.355 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001186/0.1269, allocations: 461.1 kB / 368.8 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.244e-06/0.127, allocations: 0 / 368.8 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of matching and sorting (n=50): time 0.1848/0.3117, allocations: 1.098 MB / 369.9 MB, free: 25.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001124/0.3119, allocations: 371 kB / 370.2 MB, free: 25.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001013/0.3129, allocations: 0.5739 MB / 370.8 MB, free: 24.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000119/0.313, allocations: 42.53 kB / 370.8 MB, free: 24.92 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002994/0.3133, allocations: 369.2 kB / 371.2 MB, free: 24.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00018/0.3135, allocations: 166.2 kB / 371.4 MB, free: 24.71 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003209/0.3138, allocations: 139.7 kB / 371.5 MB, free: 24.7 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001791/0.314, allocations: 374.3 kB / 371.9 MB, free: 24.38 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001434/0.3155, allocations: 405.4 kB / 372.3 MB, free: 24.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001456/0.3169, allocations: 0.6736 MB / 372.9 MB, free: 23.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002455/0.3194, allocations: 0.9702 MB / 373.9 MB, free: 23.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.418e-05/0.3194, allocations: 5.938 kB / 373.9 MB, free: 23.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003139/0.3226, allocations: 1.147 MB / 375.1 MB, free: 22.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.947e-05/0.3227, allocations: 62.8 kB / 375.1 MB, free: 22.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.979e-05/0.3227, allocations: 5.531 kB / 375.1 MB, free: 22.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.857e-05/0.3227, allocations: 11.62 kB / 375.1 MB, free: 22.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001157/0.3239, allocations: 224.9 kB / 375.4 MB, free: 22.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.648e-05/0.3239, allocations: 11.11 kB / 375.4 MB, free: 22.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001192/0.3251, allocations: 181.2 kB / 375.5 MB, free: 22.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.503e-05/0.3252, allocations: 35.78 kB / 375.6 MB, free: 22.83 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.0003885/0.3256, allocations: 223.8 kB / 375.8 MB, free: 22.65 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001365/0.3258, allocations: 67.84 kB / 375.9 MB, free: 22.61 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001617/0.3259, allocations: 80.73 kB / 375.9 MB, free: 22.56 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.3259, allocations: 4.125 kB / 375.9 MB, free: 22.56 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.528e-05/0.326, allocations: 1.375 kB / 376 MB, free: 22.56 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/0.326, allocations: 6.844 kB / 376 MB, free: 22.56 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003355/0.3293, allocations: 1.674 MB / 377.6 MB, free: 21.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.127e-06/0.3294, allocations: 1.75 kB / 377.6 MB, free: 21.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008418/0.3302, allocations: 149.2 kB / 377.8 MB, free: 21.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-05/0.3302, allocations: 5.891 kB / 377.8 MB, free: 21.76 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.092e-05/0.3303, allocations: 13.73 kB / 377.8 MB, free: 21.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.084e-05/0.3303, allocations: 3.219 kB / 377.8 MB, free: 21.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.145e-06/0.3303, allocations: 0.6562 kB / 377.8 MB, free: 21.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003331/0.3337, allocations: 1.305 MB / 379.1 MB, free: 21.22 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001639/0.3339, allocations: 141 kB / 379.2 MB, free: 21.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001103/0.334, allocations: 14.47 kB / 379.3 MB, free: 21.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008054/0.3348, allocations: 108.6 kB / 379.4 MB, free: 21.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001582/0.3349, allocations: 47.02 kB / 379.4 MB, free: 21.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.511e-05/0.335, allocations: 19.61 kB / 379.4 MB, free: 21.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006393/0.3356, allocations: 401 kB / 379.8 MB, free: 20.87 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3357, allocations: 4 kB / 379.8 MB, free: 20.87 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007078/0.3364, allocations: 177.8 kB / 380 MB, free: 20.84 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.0001763/0.3365, allocations: 116.5 kB / 380.1 MB, free: 20.74 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002734/0.3393, allocations: 1.017 MB / 381.1 MB, free: 20.35 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.3393, allocations: 1.344 kB / 381.1 MB, free: 20.35 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00113/0.3404, allocations: 415.9 kB / 381.5 MB, free: 20.22 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006329/0.3411, allocations: 105.9 kB / 381.6 MB, free: 20.17 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002683/0.3438, allocations: 1.498 MB / 383.1 MB, free: 19.26 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003955/0.3442, allocations: 0.88 MB / 384 MB, free: 18.55 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000553/0.3448, allocations: 83.64 kB / 384.1 MB, free: 18.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002302/0.345, allocations: 53.72 kB / 384.2 MB, free: 18.51 MB / 302.1 MB Notification: Performance of SimCode: time 8.01e-07/0.345, allocations: 0 / 384.2 MB, free: 18.51 MB / 302.1 MB Notification: Performance of Templates: time 0.01472/0.3597, allocations: 8.437 MB / 392.6 MB, free: 15.05 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins/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