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.001122/0.001122, 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.001139/0.001139, 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.339/1.339, 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.001221/0.001221, allocations: 52.39 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07174/0.07297, allocations: 46.62 MB / 374.6 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.1726/0.2456, allocations: 13.35 MB / 388 MB, free: 5.285 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02371/0.2694, allocations: 19.33 MB / 407.3 MB, free: 7.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002509/0.2719, allocations: 125.3 kB / 407.4 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003351/0.2754, allocations: 1.081 MB / 408.5 MB, free: 6.758 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008823/0.2842, allocations: 2.239 MB / 410.8 MB, free: 5.359 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004885/0.2891, allocations: 1.376 MB / 412.1 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0107/0.2998, allocations: 6.215 MB / 418.3 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00087/0.3007, allocations: 428.8 kB / 418.8 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001729/0.3025, allocations: 0.9465 MB / 419.7 MB, free: 1.152 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001237/0.3037, allocations: 1.036 MB / 420.8 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000162/0.3039, allocations: 69.41 kB / 420.8 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004448/0.3084, allocations: 1.15 MB / 422 MB, free: 228 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004366/0.3088, allocations: 307.7 kB / 422.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001816/0.3106, allocations: 1.308 MB / 423.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005219/0.3159, allocations: 3.662 MB / 427.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.3159, allocations: 0 / 427.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.165e-06/0.3159, allocations: 4 kB / 427.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.593e-05/0.316, allocations: 0 / 427.2 MB, free: 11.16 MB / 350.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.005056/0.321, allocations: 3.518 MB / 430.8 MB, free: 7.566 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.698e-05/0.3211, allocations: 12.03 kB / 430.8 MB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001167/0.3212, allocations: 90.52 kB / 430.9 MB, free: 7.457 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003937/0.3216, allocations: 375.4 kB / 431.2 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003608/0.3252, allocations: 2.528 MB / 433.8 MB, free: 4.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.455e-05/0.3253, allocations: 36.98 kB / 433.8 MB, free: 4.441 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001279/0.3254, allocations: 51.91 kB / 433.8 MB, free: 4.391 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001296/0.3267, allocations: 0.6992 MB / 434.5 MB, free: 3.684 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/0.3267, allocations: 3.984 kB / 434.5 MB, free: 3.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.974e-05/0.3268, allocations: 20 kB / 434.6 MB, free: 3.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.144e-05/0.3268, allocations: 23.92 kB / 434.6 MB, free: 3.637 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001533/0.3284, allocations: 0.789 MB / 435.4 MB, free: 2.852 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004868/0.3333, allocations: 2.888 MB / 438.3 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00131/0.3346, allocations: 0.7014 MB / 439 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001013/0.3356, allocations: 0.6586 MB / 439.6 MB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03047/0.3661, allocations: 30.14 MB / 469.8 MB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007756/0.3669, allocations: 377.2 kB / 470.1 MB, free: 11.88 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 3.036e-06/0.3669, allocations: 0 / 470.1 MB, free: 11.88 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.003188/0.3701, allocations: 1.392 MB / 471.5 MB, free: 10.46 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.244e-05/0.3702, allocations: 63.34 kB / 471.6 MB, free: 10.38 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003368/0.3736, allocations: 2.816 MB / 474.4 MB, free: 7.547 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.999e-05/0.3737, allocations: 29.7 kB / 474.4 MB, free: 7.512 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001113/0.3748, allocations: 1.399 MB / 475.8 MB, free: 6.105 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001442/0.3749, allocations: 173.6 kB / 476 MB, free: 5.934 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002855/0.3752, allocations: 218.2 kB / 476.2 MB, free: 5.715 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.3754, allocations: 341.9 kB / 476.5 MB, free: 5.375 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005728/0.3759, allocations: 233.9 kB / 476.8 MB, free: 5.145 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007987/0.3767, allocations: 0.5938 MB / 477.4 MB, free: 4.379 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001459/0.3782, allocations: 0.8802 MB / 478.3 MB, free: 3.332 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/0.3782, allocations: 4 kB / 478.3 MB, free: 3.328 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002632/0.3809, allocations: 1.283 MB / 479.5 MB, free: 2.027 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.212e-05/0.3809, allocations: 8 kB / 479.5 MB, free: 2.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001245/0.381, allocations: 84 kB / 479.6 MB, free: 1.938 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006444/0.3817, allocations: 281.1 kB / 479.9 MB, free: 1.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005824/0.3823, allocations: 167.7 kB / 480.1 MB, free: 1.496 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001092/0.3834, allocations: 0.8846 MB / 481 MB, free: 0.5898 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001045/0.3845, allocations: 111 kB / 481.1 MB, free: 492 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001065/0.3846, allocations: 64 kB / 481.1 MB, free: 428 kB / 398.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.0007397/0.3853, allocations: 429.5 kB / 481.5 MB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003745/0.3857, allocations: 363.6 kB / 481.9 MB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002755/0.3885, allocations: 1.284 MB / 483.2 MB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.3885, allocations: 4 kB / 483.2 MB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3885, allocations: 4 kB / 483.2 MB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.3885, allocations: 3.938 kB / 483.2 MB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003548/0.3921, allocations: 2.201 MB / 485.4 MB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001114/0.3922, allocations: 72 kB / 485.5 MB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003113/0.3925, allocations: 67.88 kB / 485.5 MB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004578/0.393, allocations: 264.8 kB / 485.8 MB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.669e-05/0.393, allocations: 39.98 kB / 485.8 MB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008873/0.3939, allocations: 0.8606 MB / 486.7 MB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/0.394, allocations: 4.031 kB / 486.7 MB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001821/0.3958, allocations: 1.129 MB / 487.8 MB, free: 9.539 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007832/0.3966, allocations: 464.4 kB / 488.3 MB, free: 9.062 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002552/0.3968, allocations: 19.98 kB / 488.3 MB, free: 9.043 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006361/0.3975, allocations: 27.97 kB / 488.3 MB, free: 9.016 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001654/0.3977, allocations: 59.95 kB / 488.4 MB, free: 8.957 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.721e-05/0.3977, allocations: 43.98 kB / 488.4 MB, free: 8.914 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002284/0.4, allocations: 1.832 MB / 490.3 MB, free: 7.078 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4, allocations: 0 / 490.3 MB, free: 7.078 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001321/0.4014, allocations: 0.57 MB / 490.8 MB, free: 6.508 MB / 414.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.003141/0.4045, allocations: 2.367 MB / 493.2 MB, free: 4.094 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001767/0.4063, allocations: 0.8643 MB / 494.1 MB, free: 3.211 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4063, allocations: 0.9375 kB / 494.1 MB, free: 3.211 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009237/0.4073, allocations: 0.4888 MB / 494.5 MB, free: 2.699 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001617/0.4089, allocations: 0.5177 MB / 495.1 MB, free: 2.18 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0215/0.4304, allocations: 16.05 MB / 0.4991 GB, free: 1.582 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00106/0.4315, allocations: 1.608 MB / 0.5007 GB, free: 15.95 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001008/0.4325, allocations: 391.1 kB / 0.5011 GB, free: 15.56 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001086/0.4336, allocations: 1.128 MB / 0.5022 GB, free: 14.43 MB / 446.1 MB Notification: Performance of SimCode: time 7.82e-07/0.4336, allocations: 0 / 0.5022 GB, free: 14.43 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2818/0.7154, allocations: 62.59 MB / 0.5633 GB, free: 149.8 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.31/19.02, allocations: 7.203 kB / 0.5633 GB, free: 149.8 MB / 478.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