Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001448/0.001448, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.001758/0.001758, allocations: 192 kB / 18.51 MB, free: 4.508 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.348/1.348, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001266/0.001266, allocations: 47.94 kB / 280.7 MB, free: 3.094 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07506/0.07634, allocations: 46.63 MB / 327.4 MB, free: 4.391 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01219/0.08855, allocations: 13.36 MB / 340.7 MB, free: 6.965 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02159/0.1102, allocations: 19.32 MB / 360.1 MB, free: 3.566 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001858/0.1121, allocations: 67.44 kB / 360.1 MB, free: 3.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002883/0.115, allocations: 1.093 MB / 361.2 MB, free: 2.395 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006869/0.1219, allocations: 2.235 MB / 363.4 MB, free: 148 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005022/0.127, allocations: 1.369 MB / 364.8 MB, free: 14.77 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0105/0.1375, allocations: 6.192 MB / 371 MB, free: 8.559 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001258/0.1388, allocations: 440.2 kB / 371.4 MB, free: 8.098 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001849/0.1407, allocations: 0.9213 MB / 372.4 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001493/0.1422, allocations: 1.029 MB / 373.4 MB, free: 6.137 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004104/0.1426, allocations: 75.94 kB / 373.5 MB, free: 6.062 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004964/0.1476, allocations: 1.152 MB / 374.6 MB, free: 4.91 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007373/0.1484, allocations: 317.7 kB / 374.9 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002257/0.1507, allocations: 1.316 MB / 376.2 MB, free: 3.273 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1503/0.301, allocations: 3.63 MB / 379.9 MB, free: 24.61 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.77e-06/0.301, allocations: 3.719 kB / 379.9 MB, free: 24.61 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.301, allocations: 0 / 379.9 MB, free: 24.61 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001186/0.3012, allocations: 0 / 379.9 MB, free: 24.61 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.005065/0.3062, allocations: 3.528 MB / 383.4 MB, free: 22.68 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.3063, allocations: 9.062 kB / 383.4 MB, free: 22.68 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001163/0.3064, allocations: 96.58 kB / 383.5 MB, free: 22.64 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004813/0.3069, allocations: 373.6 kB / 383.9 MB, free: 22.45 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003697/0.3106, allocations: 2.538 MB / 386.4 MB, free: 21.67 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.435e-05/0.3107, allocations: 35.72 kB / 386.4 MB, free: 21.67 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001297/0.3108, allocations: 51.34 kB / 386.5 MB, free: 21.67 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001392/0.3122, allocations: 0.7041 MB / 387.2 MB, free: 21.62 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.734e-05/0.3122, allocations: 0 / 387.2 MB, free: 21.62 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.964e-05/0.3123, allocations: 19.88 kB / 387.2 MB, free: 21.62 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.27e-05/0.3123, allocations: 21.05 kB / 387.2 MB, free: 21.62 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001534/0.3139, allocations: 0.7891 MB / 388 MB, free: 21.62 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004698/0.3186, allocations: 2.891 MB / 390.9 MB, free: 21.13 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001202/0.3198, allocations: 0.6991 MB / 391.6 MB, free: 21 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009712/0.3208, allocations: 0.653 MB / 392.3 MB, free: 20.99 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0229/0.3437, allocations: 30.16 MB / 422.4 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007455/0.3445, allocations: 368.6 kB / 422.8 MB, free: 11.64 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.555e-06/0.3445, allocations: 0 / 422.8 MB, free: 11.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.00329/0.3478, allocations: 1.393 MB / 424.2 MB, free: 10.22 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.374e-05/0.3478, allocations: 62.5 kB / 424.2 MB, free: 10.16 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003316/0.3512, allocations: 2.82 MB / 427.1 MB, free: 7.316 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.887e-05/0.3513, allocations: 39.89 kB / 427.1 MB, free: 7.273 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001098/0.3524, allocations: 1.39 MB / 428.5 MB, free: 5.879 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001527/0.3525, allocations: 165.5 kB / 428.7 MB, free: 5.719 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002771/0.3528, allocations: 221.2 kB / 428.9 MB, free: 5.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.3529, allocations: 341.9 kB / 429.2 MB, free: 5.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005924/0.3535, allocations: 241.9 kB / 429.4 MB, free: 4.926 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007681/0.3543, allocations: 0.5962 MB / 430 MB, free: 4.168 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001377/0.3557, allocations: 0.8745 MB / 430.9 MB, free: 3.172 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.791e-06/0.3557, allocations: 0 / 430.9 MB, free: 3.172 MB / 334.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002375/0.3581, allocations: 1.284 MB / 432.2 MB, free: 1.949 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/0.3581, allocations: 12 kB / 432.2 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001085/0.3582, allocations: 86.61 kB / 432.3 MB, free: 1.855 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005296/0.3588, allocations: 282.2 kB / 432.6 MB, free: 1.582 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005606/0.3594, allocations: 164.8 kB / 432.7 MB, free: 1.434 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009204/0.3603, allocations: 0.8831 MB / 433.6 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001236/0.3615, allocations: 106.9 kB / 433.7 MB, free: 436 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.985e-05/0.3616, allocations: 68 kB / 433.8 MB, free: 368 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 (vin1.counter,$PRE.vin1.counter,vin2.counter,$PRE.vin2.counter,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0007061/0.3624, allocations: 423.5 kB / 434.2 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004517/0.3628, allocations: 363.6 kB / 434.5 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003165/0.366, allocations: 1.282 MB / 435.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/0.366, allocations: 5.078 kB / 435.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.366, allocations: 0 / 435.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.366, allocations: 2.188 kB / 435.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003843/0.3699, allocations: 2.212 MB / 438 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.726e-05/0.37, allocations: 68 kB / 438.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003259/0.3703, allocations: 63.94 kB / 438.2 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004469/0.3708, allocations: 268.2 kB / 438.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.777e-05/0.3709, allocations: 31.98 kB / 438.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000844/0.3717, allocations: 0.867 MB / 439.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.3717, allocations: 3.984 kB / 439.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002036/0.3738, allocations: 1.135 MB / 440.5 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000844/0.3746, allocations: 468.4 kB / 440.9 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002922/0.3749, allocations: 11.98 kB / 440.9 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006486/0.3756, allocations: 31.97 kB / 441 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001577/0.3758, allocations: 67.81 kB / 441 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.501e-05/0.3758, allocations: 40.94 kB / 441.1 MB, free: 8.934 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002517/0.3784, allocations: 1.836 MB / 442.9 MB, free: 7.094 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3784, allocations: 0 / 442.9 MB, free: 7.094 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001643/0.38, allocations: 0.5738 MB / 443.5 MB, free: 6.52 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003252/0.3833, allocations: 2.359 MB / 445.9 MB, free: 4.285 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001848/0.3851, allocations: 0.8671 MB / 446.7 MB, free: 3.426 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.3852, allocations: 0 / 446.7 MB, free: 3.426 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009371/0.3861, allocations: 0.4896 MB / 447.2 MB, free: 2.922 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002099/0.3882, allocations: 0.5045 MB / 447.7 MB, free: 2.414 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02337/0.4116, allocations: 20.3 MB / 468 MB, free: 12.27 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009793/0.4126, allocations: 1.608 MB / 469.6 MB, free: 10.64 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001274/0.4139, allocations: 391.1 kB / 470 MB, free: 10.25 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001046/0.415, allocations: 1.132 MB / 471.1 MB, free: 9.117 MB / 382.1 MB Notification: Performance of SimCode: time 6.22e-07/0.415, allocations: 0 / 471.1 MB, free: 9.117 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1022/0.5172, allocations: 61.94 MB / 0.5206 GB, free: 11.11 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.39/16.91, allocations: 19.62 kB / 0.5206 GB, free: 11.09 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.csv --start-time 0 --stop-time 2e-07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-11 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches