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.001113/0.001114, allocations: 112.3 kB / 17.73 MB, free: 5.359 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.001164/0.001163, allocations: 187.1 kB / 18.66 MB, free: 4.438 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.346/1.346, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001265/0.001265, allocations: 56.33 kB / 328.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09082/0.0921, allocations: 46.62 MB / 375.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005682/0.09783, allocations: 4.038 MB / 379.2 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.215/0.3129, allocations: 1.117 MB / 380.3 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006045/0.3135, allocations: 8.75 kB / 380.3 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002789/0.3139, allocations: 98.75 kB / 380.4 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004267/0.3143, allocations: 174.1 kB / 380.6 MB, free: 9.688 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007367/0.315, allocations: 286.2 kB / 380.9 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001149/0.3162, allocations: 0.962 MB / 381.8 MB, free: 9.543 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004444/0.3167, allocations: 281.3 kB / 382.1 MB, free: 9.508 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005117/0.3172, allocations: 376.6 kB / 382.5 MB, free: 9.457 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005572/0.3177, allocations: 443 kB / 382.9 MB, free: 9.238 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002347/0.318, allocations: 113 kB / 383 MB, free: 9.238 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001918/0.3182, allocations: 113.9 kB / 383.1 MB, free: 9.238 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001598/0.3184, allocations: 211.9 kB / 383.3 MB, free: 9.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003748/0.3187, allocations: 417.2 kB / 383.7 MB, free: 8.82 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001305/0.3201, allocations: 1.136 MB / 384.9 MB, free: 8.41 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.3201, allocations: 0 / 384.9 MB, free: 8.41 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3201, allocations: 0 / 384.9 MB, free: 8.41 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.273e-05/0.3201, allocations: 1.062 kB / 384.9 MB, free: 8.41 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.002894/0.323, allocations: 1.194 MB / 386.1 MB, free: 7.641 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.453e-05/0.3231, allocations: 8.656 kB / 386.1 MB, free: 7.641 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001982/0.3233, allocations: 74.73 kB / 386.1 MB, free: 7.605 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007569/0.324, allocations: 443.9 kB / 386.6 MB, free: 7.242 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.95e-05/0.3241, allocations: 50.45 kB / 386.6 MB, free: 7.219 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001076/0.3242, allocations: 52.61 kB / 386.7 MB, free: 7.203 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002112/0.3263, allocations: 0.9246 MB / 387.6 MB, free: 6.766 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.811e-05/0.3264, allocations: 5.25 kB / 387.6 MB, free: 6.762 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.669e-05/0.3264, allocations: 24.78 kB / 387.6 MB, free: 6.746 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.524e-05/0.3265, allocations: 14.16 kB / 387.6 MB, free: 6.746 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002895/0.3294, allocations: 0.9744 MB / 388.6 MB, free: 6.473 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004214/0.3336, allocations: 3.061 MB / 391.7 MB, free: 4.418 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002279/0.3359, allocations: 0.9108 MB / 392.6 MB, free: 3.977 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001161/0.337, allocations: 437.7 kB / 393 MB, free: 3.844 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.189e-05/0.3371, allocations: 18.23 kB / 393 MB, free: 3.84 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001192/0.3383, allocations: 456.4 kB / 393.5 MB, free: 3.684 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.424e-06/0.3383, allocations: 0 / 393.5 MB, free: 3.684 MB / 318.1 MB Notification: Performance of matching and sorting (n=50): time 0.003193/0.3415, allocations: 1.088 MB / 394.6 MB, free: 3.336 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.386e-05/0.3416, allocations: 273.8 kB / 394.8 MB, free: 3.016 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007164/0.3423, allocations: 0.4975 MB / 395.3 MB, free: 2.77 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.356e-05/0.3424, allocations: 42.39 kB / 395.4 MB, free: 2.727 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000166/0.3426, allocations: 345.2 kB / 395.7 MB, free: 2.449 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001078/0.3427, allocations: 168.4 kB / 395.9 MB, free: 2.324 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002324/0.3429, allocations: 132.6 kB / 396 MB, free: 2.254 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.266e-05/0.343, allocations: 364.6 kB / 396.4 MB, free: 1.918 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001164/0.3442, allocations: 404.4 kB / 396.8 MB, free: 1.801 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001299/0.3455, allocations: 0.649 MB / 397.4 MB, free: 1.363 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002131/0.3476, allocations: 0.9712 MB / 398.4 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.3476, allocations: 1.625 kB / 398.4 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002663/0.3503, allocations: 1.129 MB / 399.5 MB, free: 272 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.716e-05/0.3504, allocations: 65.02 kB / 399.6 MB, free: 204 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.053e-05/0.3504, allocations: 7.812 kB / 399.6 MB, free: 204 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.253e-05/0.3504, allocations: 9.625 kB / 399.6 MB, free: 204 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009825/0.3514, allocations: 226.4 kB / 399.8 MB, free: 132 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.651e-05/0.3514, allocations: 18.03 kB / 399.8 MB, free: 124 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001018/0.3524, allocations: 176.3 kB / 400 MB, free: 28 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-05/0.3525, allocations: 33.78 kB / 400 MB, free: 20 kB / 318.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.0003259/0.3529, allocations: 215 kB / 400.2 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.353, allocations: 55.78 kB / 400.3 MB, free: 15.81 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000152/0.3531, allocations: 70.92 kB / 400.4 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.752e-06/0.3531, allocations: 4.562 kB / 400.4 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.256e-05/0.3532, allocations: 9 kB / 400.4 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.3532, allocations: 7.922 kB / 400.4 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003342/0.3565, allocations: 1.633 MB / 402 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-06/0.3565, allocations: 6.875 kB / 402 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000796/0.3573, allocations: 152.8 kB / 402.2 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.3574, allocations: 1.156 kB / 402.2 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.643e-05/0.3574, allocations: 8.562 kB / 402.2 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.3574, allocations: 1.156 kB / 402.2 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3574, allocations: 1.219 kB / 402.2 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003432/0.3609, allocations: 1.286 MB / 403.5 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002219/0.3611, allocations: 143.3 kB / 403.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001062/0.3612, allocations: 12.47 kB / 403.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007433/0.362, allocations: 106.7 kB / 403.7 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001406/0.3621, allocations: 57.92 kB / 403.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.872e-05/0.3622, allocations: 13.38 kB / 403.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005349/0.3627, allocations: 352.2 kB / 404.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3627, allocations: 0 / 404.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006521/0.3634, allocations: 170 kB / 404.3 MB, free: 13.38 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.00016/0.3636, allocations: 111.5 kB / 404.4 MB, free: 13.28 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002618/0.3662, allocations: 0.998 MB / 405.4 MB, free: 12.74 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/0.3662, allocations: 1.938 kB / 405.4 MB, free: 12.74 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001128/0.3673, allocations: 409.2 kB / 405.8 MB, free: 12.56 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006725/0.368, allocations: 101.1 kB / 405.9 MB, free: 12.5 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002519/0.3706, allocations: 1.168 MB / 407.1 MB, free: 11.77 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003995/0.371, allocations: 0.8564 MB / 407.9 MB, free: 11.01 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.00048/0.3715, allocations: 78.02 kB / 408 MB, free: 10.97 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002195/0.3717, allocations: 58.83 kB / 408.1 MB, free: 10.95 MB / 334.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3717, allocations: 0 / 408.1 MB, free: 10.95 MB / 334.1 MB Notification: Performance of Templates: time 0.01507/0.3868, allocations: 8.234 MB / 416.3 MB, free: 4.586 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/NandGate/NandGate.csv","/var/lib/jenkins/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