Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001115/0.001115, allocations: 178 kB / 17.36 MB, free: 4.32 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.46/1.46, allocations: 205.6 MB / 223.7 MB, free: 8.941 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000889/0.000889, allocations: 90.19 kB / 272.1 MB, free: 8.129 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003013/0.0003013, allocations: 4 kB / 329 MB, free: 15.07 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2774/0.2778, allocations: 47.58 MB / 376.6 MB, free: 45.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.003747/0.2816, allocations: 3.48 MB / 380.1 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002404/0.284, allocations: 1.25 MB / 381.3 MB, free: 41.74 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005035/0.2846, allocations: 8.656 kB / 381.3 MB, free: 41.74 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002841/0.2849, allocations: 69.08 kB / 381.4 MB, free: 41.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004658/0.2853, allocations: 139.8 kB / 381.5 MB, free: 41.56 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008248/0.2862, allocations: 242.5 kB / 381.8 MB, free: 41.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001158/0.2873, allocations: 0.8934 MB / 382.7 MB, free: 40.81 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000514/0.2879, allocations: 240.8 kB / 382.9 MB, free: 40.67 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005752/0.2885, allocations: 294.2 kB / 383.2 MB, free: 40.51 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000562/0.289, allocations: 385.1 kB / 383.6 MB, free: 40.24 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001331/0.2892, allocations: 47.62 kB / 383.6 MB, free: 40.24 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000134/0.2893, allocations: 51.28 kB / 383.7 MB, free: 40.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001519/0.2895, allocations: 135.3 kB / 383.8 MB, free: 40.12 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004655/0.29, allocations: 369.2 kB / 384.2 MB, free: 39.85 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009378/0.2909, allocations: 1.052 MB / 385.2 MB, free: 39.01 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.2909, allocations: 4 kB / 385.2 MB, free: 39.01 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.2909, allocations: 1.406 kB / 385.2 MB, free: 39.01 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.949e-06/0.2909, allocations: 0 / 385.2 MB, free: 39.01 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002849/0.2938, allocations: 1.149 MB / 386.4 MB, free: 38.17 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.2939, allocations: 13.38 kB / 386.4 MB, free: 38.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001864/0.294, allocations: 73.5 kB / 386.5 MB, free: 38.13 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005319/0.2946, allocations: 435.9 kB / 386.9 MB, free: 37.72 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.588e-05/0.2947, allocations: 45.94 kB / 386.9 MB, free: 37.7 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001251/0.2948, allocations: 56.3 kB / 387 MB, free: 37.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002199/0.297, allocations: 1.002 MB / 388 MB, free: 36.89 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.012e-05/0.297, allocations: 7.938 kB / 388 MB, free: 36.88 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.317e-05/0.2971, allocations: 24 kB / 388 MB, free: 36.86 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.54e-05/0.2971, allocations: 16 kB / 388 MB, free: 36.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002655/0.2998, allocations: 1.124 MB / 389.2 MB, free: 35.72 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004005/0.3038, allocations: 3.14 MB / 392.3 MB, free: 32.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002107/0.306, allocations: 1.026 MB / 393.3 MB, free: 31.38 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001033/0.307, allocations: 498.9 kB / 393.8 MB, free: 30.89 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.834e-05/0.3071, allocations: 16.41 kB / 393.8 MB, free: 30.87 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001134/0.3082, allocations: 0.5089 MB / 394.3 MB, free: 30.35 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 3.126e-06/0.3082, allocations: 0 / 394.3 MB, free: 30.35 MB / 298.7 MB Notification: Performance of matching and sorting (n=50): time 0.002913/0.3111, allocations: 1.256 MB / 395.6 MB, free: 29.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.297e-05/0.3112, allocations: 281.3 kB / 395.9 MB, free: 28.75 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006013/0.3119, allocations: 0.4901 MB / 396.4 MB, free: 28.25 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.03e-05/0.3119, allocations: 41.7 kB / 396.4 MB, free: 28.2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001825/0.3121, allocations: 343.5 kB / 396.7 MB, free: 27.86 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/0.3122, allocations: 165.6 kB / 396.9 MB, free: 27.7 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.115e-05/0.3123, allocations: 16 kB / 396.9 MB, free: 27.68 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.591e-05/0.3124, allocations: 366.8 kB / 397.3 MB, free: 27.32 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00105/0.3134, allocations: 461.7 kB / 397.7 MB, free: 26.87 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001164/0.3146, allocations: 0.7002 MB / 398.4 MB, free: 26.06 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001977/0.3166, allocations: 1.083 MB / 399.5 MB, free: 24.88 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.561e-06/0.3166, allocations: 4 kB / 399.5 MB, free: 24.87 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002532/0.3192, allocations: 1.239 MB / 400.7 MB, free: 23.61 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.17e-05/0.3192, allocations: 66.69 kB / 400.8 MB, free: 23.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/0.3192, allocations: 4 kB / 400.8 MB, free: 23.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.888e-05/0.3193, allocations: 12 kB / 400.8 MB, free: 23.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009606/0.3202, allocations: 260 kB / 401.1 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.041e-05/0.3203, allocations: 15.94 kB / 401.1 MB, free: 23.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001053/0.3213, allocations: 211.1 kB / 401.3 MB, free: 23.05 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.63e-05/0.3214, allocations: 32 kB / 401.3 MB, free: 23.02 MB / 298.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 ($whenCondition2,$whenCondition1,$PRE.VIN1.signalSource.T_start,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.count,VIN1.signalSource.count,$PRE.VIN2.signalSource.T_start,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.count,VIN2.signalSource.count) * 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.000306/0.3217, allocations: 214.1 kB / 401.5 MB, free: 22.8 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.981e-05/0.3218, allocations: 63.34 kB / 401.6 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001206/0.3219, allocations: 61.59 kB / 401.7 MB, free: 22.67 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.355e-06/0.322, allocations: 11.92 kB / 401.7 MB, free: 22.66 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.196e-06/0.322, allocations: 3.938 kB / 401.7 MB, free: 22.66 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.403e-06/0.322, allocations: 0 / 401.7 MB, free: 22.66 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002871/0.3249, allocations: 1.775 MB / 403.4 MB, free: 20.83 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.3249, allocations: 3.938 kB / 403.5 MB, free: 20.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000729/0.3256, allocations: 175.8 kB / 403.6 MB, free: 20.65 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.904e-06/0.3256, allocations: 0 / 403.6 MB, free: 20.65 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.572e-05/0.3257, allocations: 15.94 kB / 403.6 MB, free: 20.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.07e-05/0.3258, allocations: 8 kB / 403.6 MB, free: 20.63 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.3258, allocations: 3.984 kB / 403.7 MB, free: 20.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00298/0.3288, allocations: 1.458 MB / 405.1 MB, free: 19.15 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001724/0.3289, allocations: 140.2 kB / 405.2 MB, free: 18.99 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.41e-05/0.3291, allocations: 15.98 kB / 405.3 MB, free: 18.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000798/0.3299, allocations: 139.9 kB / 405.4 MB, free: 18.84 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001897/0.3301, allocations: 48.38 kB / 405.4 MB, free: 18.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.142e-05/0.3301, allocations: 19.98 kB / 405.5 MB, free: 18.77 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004944/0.3306, allocations: 342.9 kB / 405.8 MB, free: 18.44 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.723e-06/0.3306, allocations: 0 / 405.8 MB, free: 18.44 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000749/0.3314, allocations: 175.8 kB / 406 MB, free: 18.27 MB / 298.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.0001731/0.3316, allocations: 123.2 kB / 406.1 MB, free: 18.14 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002267/0.3338, allocations: 1.106 MB / 407.2 MB, free: 17 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.3339, allocations: 0 / 407.2 MB, free: 17 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009523/0.3348, allocations: 471 kB / 407.7 MB, free: 16.54 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005886/0.3354, allocations: 93.8 kB / 407.8 MB, free: 16.45 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002225/0.3377, allocations: 1.479 MB / 409.2 MB, free: 14.95 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003096/0.338, allocations: 0.8591 MB / 410.1 MB, free: 14.06 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004472/0.3384, allocations: 80.66 kB / 410.2 MB, free: 13.98 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001996/0.3386, allocations: 47.42 kB / 410.2 MB, free: 13.94 MB / 298.7 MB Notification: Performance of SimCode: time 5.81e-07/0.3387, allocations: 4 kB / 410.2 MB, free: 13.93 MB / 298.7 MB Notification: Performance of Templates: time 0.01207/0.3507, allocations: 7.382 MB / 417.6 MB, free: 6.574 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches