Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001264/0.001264, allocations: 102 kB / 18.39 MB, free: 4.531 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.00117/0.00117, allocations: 190.5 kB / 19.33 MB, free: 3.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.401/1.401, allocations: 205.1 MB / 225.2 MB, free: 12.2 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 51.94 kB / 329.2 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08768/0.08889, allocations: 46.61 MB / 375.8 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005373/0.0943, allocations: 4.039 MB / 379.9 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2056/0.2999, allocations: 1.118 MB / 381 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003415/0.3003, allocations: 8.812 kB / 381 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000253/0.3006, allocations: 99.48 kB / 381.1 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003332/0.3009, allocations: 167.6 kB / 381.2 MB, free: 9.676 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006289/0.3016, allocations: 282.6 kB / 381.5 MB, free: 9.672 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009725/0.3025, allocations: 0.9635 MB / 382.5 MB, free: 9.531 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004158/0.303, allocations: 281 kB / 382.8 MB, free: 9.496 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005177/0.3035, allocations: 377.9 kB / 383.1 MB, free: 9.434 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004966/0.304, allocations: 443.2 kB / 383.6 MB, free: 9.211 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002484/0.3043, allocations: 113.7 kB / 383.7 MB, free: 9.211 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001776/0.3044, allocations: 117.3 kB / 383.8 MB, free: 9.207 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001629/0.3046, allocations: 212.5 kB / 384 MB, free: 9.059 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003376/0.305, allocations: 412.2 kB / 384.4 MB, free: 8.793 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001182/0.3061, allocations: 1.135 MB / 385.5 MB, free: 8.383 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3062, allocations: 0.6094 kB / 385.5 MB, free: 8.383 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.3062, allocations: 5.031 kB / 385.5 MB, free: 8.379 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.696e-05/0.3062, allocations: 0 / 385.5 MB, free: 8.379 MB / 318.1 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.002672/0.3089, allocations: 1.196 MB / 386.7 MB, free: 7.609 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.3089, allocations: 8.5 kB / 386.7 MB, free: 7.609 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001422/0.3091, allocations: 74.45 kB / 386.8 MB, free: 7.574 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005212/0.3096, allocations: 445.7 kB / 387.2 MB, free: 7.211 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.082e-05/0.3096, allocations: 45.02 kB / 387.3 MB, free: 7.191 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.33e-05/0.3097, allocations: 53.12 kB / 387.3 MB, free: 7.176 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002342/0.3121, allocations: 0.9275 MB / 388.3 MB, free: 6.734 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.97e-05/0.3121, allocations: 1 kB / 388.3 MB, free: 6.734 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.434e-05/0.3122, allocations: 24.27 kB / 388.3 MB, free: 6.719 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.38e-05/0.3122, allocations: 14.28 kB / 388.3 MB, free: 6.719 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003103/0.3154, allocations: 0.9736 MB / 389.3 MB, free: 6.445 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004861/0.3202, allocations: 3.061 MB / 392.3 MB, free: 4.391 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002441/0.3227, allocations: 0.9103 MB / 393.3 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001251/0.324, allocations: 437.3 kB / 393.7 MB, free: 3.816 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.271e-05/0.324, allocations: 18.17 kB / 393.7 MB, free: 3.812 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001285/0.3253, allocations: 463 kB / 394.2 MB, free: 3.648 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.465e-06/0.3253, allocations: 1.188 kB / 394.2 MB, free: 3.648 MB / 318.1 MB Notification: Performance of matching and sorting (n=50): time 0.003467/0.3288, allocations: 1.08 MB / 395.2 MB, free: 3.309 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.072e-05/0.3289, allocations: 274.1 kB / 395.5 MB, free: 2.988 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008775/0.3298, allocations: 0.5015 MB / 396 MB, free: 2.738 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.047e-05/0.3299, allocations: 39.06 kB / 396 MB, free: 2.699 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002462/0.3301, allocations: 344.7 kB / 396.4 MB, free: 2.422 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001672/0.3303, allocations: 166.5 kB / 396.5 MB, free: 2.297 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002375/0.3306, allocations: 134.2 kB / 396.7 MB, free: 2.227 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.3307, allocations: 366.1 kB / 397 MB, free: 1.891 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001174/0.3319, allocations: 402.2 kB / 397.4 MB, free: 1.773 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001343/0.3332, allocations: 0.6512 MB / 398.1 MB, free: 1.336 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002317/0.3355, allocations: 0.9705 MB / 399 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.182e-06/0.3356, allocations: 6.719 kB / 399.1 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.003045/0.3386, allocations: 1.131 MB / 400.2 MB, free: 244 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.883e-05/0.3387, allocations: 61.03 kB / 400.2 MB, free: 180 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.71e-05/0.3387, allocations: 9.484 kB / 400.3 MB, free: 176 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.585e-05/0.3387, allocations: 14.84 kB / 400.3 MB, free: 176 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001032/0.3398, allocations: 222 kB / 400.5 MB, free: 108 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.34e-05/0.3398, allocations: 17.55 kB / 400.5 MB, free: 100 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0012/0.341, allocations: 176.7 kB / 400.7 MB, free: 4 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001104/0.3411, allocations: 37.05 kB / 400.7 MB, free: 15.99 MB / 334.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.0003876/0.3415, allocations: 212.3 kB / 400.9 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001026/0.3416, allocations: 55.97 kB / 401 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001492/0.3418, allocations: 72.08 kB / 401 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/0.3418, allocations: 5.219 kB / 401 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.416e-05/0.3418, allocations: 3.938 kB / 401 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.625e-06/0.3418, allocations: 0 / 401 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003228/0.3451, allocations: 1.641 MB / 402.7 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.3451, allocations: 4.844 kB / 402.7 MB, free: 14.6 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007576/0.3459, allocations: 151 kB / 402.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.3459, allocations: 2.688 kB / 402.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.334e-05/0.3459, allocations: 11.98 kB / 402.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.3459, allocations: 1.25 kB / 402.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3459, allocations: 1.062 kB / 402.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003139/0.3491, allocations: 1.289 MB / 404.1 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001288/0.3492, allocations: 143.3 kB / 404.3 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.694e-05/0.3493, allocations: 11.41 kB / 404.3 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007521/0.3501, allocations: 104.8 kB / 404.4 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/0.3502, allocations: 48.84 kB / 404.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.007e-05/0.3503, allocations: 18.3 kB / 404.5 MB, free: 13.6 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005083/0.3508, allocations: 347.6 kB / 404.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3508, allocations: 4 kB / 404.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006001/0.3514, allocations: 169.4 kB / 405 MB, free: 13.36 MB / 334.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.0001618/0.3516, allocations: 116.7 kB / 405.1 MB, free: 13.25 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002458/0.354, allocations: 0.9939 MB / 406.1 MB, free: 12.72 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.354, allocations: 1.125 kB / 406.1 MB, free: 12.72 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001049/0.3551, allocations: 408.7 kB / 406.5 MB, free: 12.54 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005525/0.3557, allocations: 101.9 kB / 406.6 MB, free: 12.48 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002273/0.3579, allocations: 1.194 MB / 407.8 MB, free: 11.72 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003706/0.3583, allocations: 0.8614 MB / 408.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002658/0.3586, allocations: 64.77 kB / 408.7 MB, free: 10.93 MB / 334.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3586, allocations: 0 / 408.7 MB, free: 10.93 MB / 334.1 MB Notification: Performance of Templates: time 0.01098/0.3696, allocations: 8.673 MB / 417.4 MB, free: 4.16 MB / 334.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches