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.001189/0.001189, allocations: 114.5 kB / 17.73 MB, free: 5.32 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.001317/0.001317, allocations: 179 kB / 18.66 MB, free: 4.398 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.556/1.556, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001463/0.001463, allocations: 51.92 kB / 328.5 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1066, allocations: 46.61 MB / 375.1 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.NandGate): time 0.005671/0.1123, allocations: 4.034 MB / 379.2 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2125/0.3249, allocations: 1.12 MB / 380.3 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006259/0.3255, allocations: 9.688 kB / 380.3 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004264/0.3261, allocations: 95.36 kB / 380.4 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005912/0.3267, allocations: 170.7 kB / 380.6 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006894/0.3274, allocations: 284.2 kB / 380.8 MB, free: 9.691 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009605/0.3283, allocations: 0.9639 MB / 381.8 MB, free: 9.551 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004045/0.3287, allocations: 281.6 kB / 382.1 MB, free: 9.516 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004241/0.3292, allocations: 375.8 kB / 382.5 MB, free: 9.465 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005074/0.3297, allocations: 441.8 kB / 382.9 MB, free: 9.25 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002423/0.3299, allocations: 113.6 kB / 383 MB, free: 9.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001725/0.3301, allocations: 113.6 kB / 383.1 MB, free: 9.25 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001623/0.3303, allocations: 221.7 kB / 383.3 MB, free: 9.094 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003153/0.3306, allocations: 409.1 kB / 383.7 MB, free: 8.832 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001115/0.3317, allocations: 1.139 MB / 384.9 MB, free: 8.418 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.3318, allocations: 1.469 kB / 384.9 MB, free: 8.418 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3318, allocations: 0 / 384.9 MB, free: 8.418 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.272e-05/0.3318, allocations: 1.078 kB / 384.9 MB, free: 8.418 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.0027/0.3345, allocations: 1.188 MB / 386.1 MB, free: 7.652 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.3345, allocations: 13.62 kB / 386.1 MB, free: 7.648 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001454/0.3347, allocations: 75.05 kB / 386.1 MB, free: 7.613 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005235/0.3352, allocations: 446.1 kB / 386.6 MB, free: 7.246 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.043e-05/0.3353, allocations: 41.97 kB / 386.6 MB, free: 7.23 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001002/0.3354, allocations: 52.44 kB / 386.7 MB, free: 7.215 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002118/0.3375, allocations: 0.9284 MB / 387.6 MB, free: 6.773 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.765e-05/0.3375, allocations: 1.312 kB / 387.6 MB, free: 6.773 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.89e-05/0.3376, allocations: 27.55 kB / 387.6 MB, free: 6.754 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.502e-05/0.3376, allocations: 12.91 kB / 387.6 MB, free: 6.754 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002952/0.3406, allocations: 0.972 MB / 388.6 MB, free: 6.484 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00464/0.3452, allocations: 3.064 MB / 391.7 MB, free: 4.426 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002491/0.3477, allocations: 0.9117 MB / 392.6 MB, free: 3.988 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001313/0.3491, allocations: 442.6 kB / 393 MB, free: 3.852 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.034e-05/0.3491, allocations: 14.36 kB / 393 MB, free: 3.852 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001238/0.3504, allocations: 459.9 kB / 393.5 MB, free: 3.691 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.726e-06/0.3504, allocations: 3.938 kB / 393.5 MB, free: 3.688 MB / 318.1 MB Notification: Performance of matching and sorting (n=50): time 0.003368/0.3538, allocations: 1.084 MB / 394.6 MB, free: 3.344 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.392e-05/0.3539, allocations: 270.5 kB / 394.8 MB, free: 3.027 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007739/0.3546, allocations: 0.502 MB / 395.3 MB, free: 2.777 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.595e-05/0.3547, allocations: 39.05 kB / 395.4 MB, free: 2.738 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002034/0.3549, allocations: 341.8 kB / 395.7 MB, free: 2.461 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001328/0.3551, allocations: 165.4 kB / 395.9 MB, free: 2.336 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002366/0.3553, allocations: 134.8 kB / 396 MB, free: 2.266 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.976e-05/0.3554, allocations: 366.3 kB / 396.4 MB, free: 1.93 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00117/0.3566, allocations: 400.7 kB / 396.7 MB, free: 1.812 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001312/0.3579, allocations: 0.6553 MB / 397.4 MB, free: 1.371 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002154/0.3601, allocations: 0.968 MB / 398.4 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.401e-06/0.3601, allocations: 1.5 kB / 398.4 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002768/0.3629, allocations: 1.135 MB / 399.5 MB, free: 264 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.492e-05/0.3629, allocations: 65.81 kB / 399.6 MB, free: 196 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/0.363, allocations: 6.219 kB / 399.6 MB, free: 196 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.789e-05/0.363, allocations: 11.06 kB / 399.6 MB, free: 196 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/0.364, allocations: 219.3 kB / 399.8 MB, free: 132 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.938e-05/0.364, allocations: 17.5 kB / 399.8 MB, free: 124 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001138/0.3652, allocations: 180.6 kB / 400 MB, free: 24 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.757e-05/0.3652, allocations: 32.23 kB / 400 MB, free: 16 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.000351/0.3656, allocations: 217.3 kB / 400.2 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001025/0.3657, allocations: 54.84 kB / 400.3 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001482/0.3659, allocations: 68.23 kB / 400.4 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/0.3659, allocations: 4.719 kB / 400.4 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.536e-05/0.3659, allocations: 10.81 kB / 400.4 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.755e-06/0.3659, allocations: 1.125 kB / 400.4 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003295/0.3692, allocations: 1.64 MB / 402 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.3692, allocations: 3.938 kB / 402 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007743/0.37, allocations: 149 kB / 402.2 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.663e-06/0.37, allocations: 2.281 kB / 402.2 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.611e-05/0.3701, allocations: 15.42 kB / 402.2 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.26e-06/0.3701, allocations: 2.094 kB / 402.2 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.3701, allocations: 1.062 kB / 402.2 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003342/0.3735, allocations: 1.286 MB / 403.5 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002219/0.3737, allocations: 142.6 kB / 403.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001316/0.3738, allocations: 12.03 kB / 403.6 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008123/0.3747, allocations: 103.6 kB / 403.7 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001472/0.3748, allocations: 53.12 kB / 403.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.369e-05/0.3749, allocations: 14.33 kB / 403.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000587/0.3755, allocations: 349.1 kB / 404.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3755, allocations: 0 / 404.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008087/0.3763, allocations: 173.5 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.0001904/0.3765, allocations: 120 kB / 404.4 MB, free: 13.27 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002832/0.3793, allocations: 0.9908 MB / 405.4 MB, free: 12.74 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/0.3793, allocations: 0.875 kB / 405.4 MB, free: 12.74 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001135/0.3805, allocations: 417.9 kB / 405.8 MB, free: 12.55 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007601/0.3813, allocations: 91.69 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.002656/0.3839, allocations: 1.167 MB / 407.1 MB, free: 11.77 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004567/0.3844, allocations: 0.8607 MB / 407.9 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004438/0.3849, allocations: 80.91 kB / 408 MB, free: 10.96 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002355/0.3851, allocations: 50.72 kB / 408.1 MB, free: 10.95 MB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3851, allocations: 1.031 kB / 408.1 MB, free: 10.95 MB / 334.1 MB Notification: Performance of Templates: time 0.01669/0.4018, allocations: 8.235 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