Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.NandGate") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001592/0.001592, allocations: 196.1 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.487/1.487, allocations: 229.5 MB / 247.7 MB, free: 6.32 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009201/0.0009202, allocations: 95.66 kB / 299.8 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002293/0.0002293, allocations: 12 kB / 360.6 MB, free: 8.461 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2636/0.2639, allocations: 51.41 MB / 412 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.003431/0.2674, allocations: 3.656 MB / 415.7 MB, free: 22.22 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001742/0.2691, allocations: 1.57 MB / 417.3 MB, free: 20.56 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002342/0.2694, allocations: 8 kB / 417.3 MB, free: 20.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001757/0.2696, allocations: 83.27 kB / 417.4 MB, free: 20.47 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002876/0.2699, allocations: 144.7 kB / 417.5 MB, free: 20.33 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004649/0.2704, allocations: 295.7 kB / 417.8 MB, free: 20.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006323/0.271, allocations: 1.003 MB / 418.8 MB, free: 19.03 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003109/0.2713, allocations: 239.5 kB / 419 MB, free: 18.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002445/0.2716, allocations: 322.8 kB / 419.3 MB, free: 18.48 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003404/0.2719, allocations: 406.2 kB / 419.7 MB, free: 18.08 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.289e-05/0.272, allocations: 52 kB / 419.8 MB, free: 18.03 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.221e-05/0.2721, allocations: 48 kB / 419.8 MB, free: 17.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001158/0.2722, allocations: 151.3 kB / 420 MB, free: 17.83 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000271/0.2725, allocations: 403.7 kB / 420.4 MB, free: 17.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000683/0.2732, allocations: 1.123 MB / 421.5 MB, free: 16.3 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.2732, allocations: 0 / 421.5 MB, free: 16.3 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2732, allocations: 0 / 421.5 MB, free: 16.3 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.407e-06/0.2732, allocations: 0 / 421.5 MB, free: 16.3 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: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.002283/0.2755, allocations: 1.208 MB / 422.7 MB, free: 15.03 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.2756, allocations: 8.031 kB / 422.7 MB, free: 15.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001348/0.2757, allocations: 88 kB / 422.8 MB, free: 14.94 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004901/0.2762, allocations: 469.6 kB / 423.3 MB, free: 14.44 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.345e-05/0.2763, allocations: 49.62 kB / 423.3 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.193e-05/0.2764, allocations: 56.38 kB / 423.4 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001891/0.2783, allocations: 1.039 MB / 424.4 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.826e-05/0.2783, allocations: 7.938 kB / 424.4 MB, free: 13.22 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.532e-05/0.2784, allocations: 20 kB / 424.4 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.905e-05/0.2784, allocations: 16 kB / 424.4 MB, free: 13.19 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002499/0.2809, allocations: 1.159 MB / 425.6 MB, free: 12.03 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003904/0.2848, allocations: 3.285 MB / 428.9 MB, free: 8.605 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002033/0.2869, allocations: 1.028 MB / 429.9 MB, free: 7.535 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009772/0.2879, allocations: 0.49 MB / 430.4 MB, free: 7.039 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.877e-05/0.2879, allocations: 20.48 kB / 430.4 MB, free: 7.02 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001076/0.289, allocations: 0.5089 MB / 430.9 MB, free: 6.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 2.324e-06/0.289, allocations: 0 / 430.9 MB, free: 6.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=50): time 0.002777/0.2918, allocations: 1.267 MB / 432.2 MB, free: 5.223 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001041/0.2919, allocations: 372.3 kB / 432.6 MB, free: 4.773 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006289/0.2925, allocations: 0.577 MB / 433.1 MB, free: 4.188 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.906e-05/0.2926, allocations: 37.7 kB / 433.2 MB, free: 4.145 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002398/0.2928, allocations: 367.6 kB / 433.5 MB, free: 3.777 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001128/0.293, allocations: 165.6 kB / 433.7 MB, free: 3.613 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.993e-05/0.293, allocations: 16 kB / 433.7 MB, free: 3.598 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.2931, allocations: 378.8 kB / 434.1 MB, free: 3.219 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001028/0.2942, allocations: 461.6 kB / 434.5 MB, free: 2.77 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001118/0.2953, allocations: 0.7358 MB / 435.3 MB, free: 1.906 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001977/0.2973, allocations: 1.087 MB / 436.4 MB, free: 0.7227 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-06/0.2973, allocations: 3.938 kB / 436.4 MB, free: 0.7188 MB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002711/0.3, allocations: 1.251 MB / 437.6 MB, free: 15.45 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.97e-05/0.3001, allocations: 63.41 kB / 437.7 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.398e-05/0.3001, allocations: 11.98 kB / 437.7 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.046e-05/0.3001, allocations: 8 kB / 437.7 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/0.3012, allocations: 255.9 kB / 438 MB, free: 15.11 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.605e-05/0.3012, allocations: 11.94 kB / 438 MB, free: 15.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001045/0.3023, allocations: 227 kB / 438.2 MB, free: 14.87 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.597e-05/0.3023, allocations: 31.98 kB / 438.2 MB, free: 14.84 MB / 314.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.0003761/0.3027, allocations: 225.5 kB / 438.4 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.3028, allocations: 67.16 kB / 438.5 MB, free: 14.54 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001465/0.303, allocations: 74.41 kB / 438.6 MB, free: 14.47 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.303, allocations: 4 kB / 438.6 MB, free: 14.47 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.303, allocations: 0 / 438.6 MB, free: 14.47 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.303, allocations: 11.97 kB / 438.6 MB, free: 14.46 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003418/0.3065, allocations: 1.794 MB / 440.4 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.3065, allocations: 0 / 440.4 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007644/0.3072, allocations: 175.8 kB / 440.6 MB, free: 12.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.718e-06/0.3073, allocations: 4 kB / 440.6 MB, free: 12.43 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.914e-05/0.3073, allocations: 11.98 kB / 440.6 MB, free: 12.42 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.3073, allocations: 0 / 440.6 MB, free: 12.42 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.3073, allocations: 8 kB / 440.6 MB, free: 12.41 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003262/0.3106, allocations: 1.474 MB / 442.1 MB, free: 10.92 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001919/0.3108, allocations: 140.3 kB / 442.2 MB, free: 10.76 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001028/0.3109, allocations: 16 kB / 442.2 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007364/0.3117, allocations: 143.9 kB / 442.3 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001532/0.3118, allocations: 56.25 kB / 442.4 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.37e-05/0.3119, allocations: 19.98 kB / 442.4 MB, free: 10.53 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005849/0.3125, allocations: 394.8 kB / 442.8 MB, free: 10.15 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3125, allocations: 0 / 442.8 MB, free: 10.15 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009868/0.3135, allocations: 175.7 kB / 443 MB, free: 9.977 MB / 314.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.0002267/0.3137, allocations: 128.4 kB / 443.1 MB, free: 9.844 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002537/0.3163, allocations: 1.111 MB / 444.2 MB, free: 8.707 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.3163, allocations: 3.938 kB / 444.2 MB, free: 8.703 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001099/0.3174, allocations: 462.5 kB / 444.7 MB, free: 8.254 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000638/0.318, allocations: 98.2 kB / 444.8 MB, free: 8.156 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002794/0.3208, allocations: 1.585 MB / 446.4 MB, free: 6.543 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004609/0.3213, allocations: 0.8899 MB / 447.2 MB, free: 5.625 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004583/0.3218, allocations: 80.86 kB / 447.3 MB, free: 5.543 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002106/0.322, allocations: 55.42 kB / 447.4 MB, free: 5.488 MB / 314.7 MB Notification: Performance of SimCode: time 9.82e-07/0.322, allocations: 0 / 447.4 MB, free: 5.488 MB / 314.7 MB Notification: Performance of Templates: time 0.01542/0.3374, allocations: 7.96 MB / 455.3 MB, free: 13.56 MB / 330.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches