Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_0_0_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.001224/0.001224, allocations: 110.3 kB / 16.92 MB, free: 5.785 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.001256/0.001256, allocations: 191.3 kB / 17.85 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.111/2.111, allocations: 222.9 MB / 241.6 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.00134, allocations: 48.58 kB / 300.7 MB, free: 5.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09369/0.09505, allocations: 49.44 MB / 350.2 MB, free: 4.348 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.02153/0.1166, allocations: 14.02 MB / 364.2 MB, free: 6.266 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2926/0.4093, allocations: 20.26 MB / 384.4 MB, free: 8.449 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002915/0.4123, allocations: 61.66 kB / 384.5 MB, free: 8.418 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004805/0.4171, allocations: 1.117 MB / 385.6 MB, free: 7.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01366/0.4308, allocations: 2.272 MB / 387.9 MB, free: 6.723 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009939/0.4408, allocations: 1.428 MB / 389.3 MB, free: 6.027 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0172/0.458, allocations: 6.327 MB / 395.6 MB, free: 3.691 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009829/0.4591, allocations: 426.8 kB / 396.1 MB, free: 3.469 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002273/0.4614, allocations: 1.022 MB / 397.1 MB, free: 2.988 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00183/0.4632, allocations: 1.05 MB / 398.1 MB, free: 2.375 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002773/0.4635, allocations: 72.56 kB / 398.2 MB, free: 2.375 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007266/0.4708, allocations: 1.478 MB / 399.7 MB, free: 1.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006473/0.4715, allocations: 313 kB / 400 MB, free: 1.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003214/0.4747, allocations: 1.298 MB / 401.3 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01086/0.4856, allocations: 3.61 MB / 404.9 MB, free: 13.96 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.293e-06/0.4856, allocations: 0 / 404.9 MB, free: 13.96 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.4857, allocations: 0 / 404.9 MB, free: 13.96 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001176/0.4858, allocations: 0 / 404.9 MB, free: 13.96 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.007727/0.4935, allocations: 3.511 MB / 408.4 MB, free: 10.38 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.763e-05/0.4936, allocations: 8.031 kB / 408.4 MB, free: 10.37 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001938/0.4938, allocations: 94.52 kB / 408.5 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007169/0.4945, allocations: 371.5 kB / 408.9 MB, free: 9.898 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005486/0.5, allocations: 2.524 MB / 411.4 MB, free: 7.293 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.903e-05/0.5001, allocations: 32.98 kB / 411.4 MB, free: 7.262 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001854/0.5003, allocations: 51.91 kB / 411.5 MB, free: 7.211 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002035/0.5024, allocations: 0.703 MB / 412.2 MB, free: 6.5 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.26e-05/0.5024, allocations: 0 / 412.2 MB, free: 6.5 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001125/0.5025, allocations: 20 kB / 412.2 MB, free: 6.48 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.117e-05/0.5026, allocations: 19.98 kB / 412.2 MB, free: 6.461 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002453/0.505, allocations: 0.7851 MB / 413 MB, free: 5.676 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008031/0.5131, allocations: 2.895 MB / 415.9 MB, free: 2.711 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001965/0.5151, allocations: 0.6907 MB / 416.6 MB, free: 1.992 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001591/0.5167, allocations: 0.6592 MB / 417.2 MB, free: 1.332 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04349/0.5602, allocations: 30.09 MB / 447.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001119/0.5614, allocations: 367.8 kB / 447.7 MB, free: 14.77 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 4.078e-06/0.5614, allocations: 0 / 447.7 MB, free: 14.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.004669/0.5661, allocations: 1.376 MB / 449.1 MB, free: 13.37 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.552e-05/0.5661, allocations: 71.39 kB / 449.1 MB, free: 13.29 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004904/0.5711, allocations: 2.795 MB / 451.9 MB, free: 10.47 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.926e-05/0.5711, allocations: 41.58 kB / 452 MB, free: 10.42 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001703/0.5729, allocations: 1.387 MB / 453.4 MB, free: 9.027 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002038/0.5731, allocations: 165.7 kB / 453.5 MB, free: 8.863 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004171/0.5735, allocations: 222.1 kB / 453.7 MB, free: 8.641 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.5737, allocations: 345.9 kB / 454.1 MB, free: 8.297 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008729/0.5746, allocations: 233.9 kB / 454.3 MB, free: 8.07 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001157/0.5757, allocations: 0.593 MB / 454.9 MB, free: 7.309 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002165/0.5779, allocations: 0.8801 MB / 455.8 MB, free: 6.258 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.344e-05/0.5779, allocations: 4 kB / 455.8 MB, free: 6.254 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.003559/0.5815, allocations: 1.28 MB / 457.1 MB, free: 4.965 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.527e-05/0.5816, allocations: 12 kB / 457.1 MB, free: 4.953 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001545/0.5817, allocations: 80 kB / 457.1 MB, free: 4.875 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008019/0.5825, allocations: 275.6 kB / 457.4 MB, free: 4.605 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008805/0.5834, allocations: 179.6 kB / 457.6 MB, free: 4.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001486/0.5849, allocations: 0.8724 MB / 458.5 MB, free: 3.531 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001931/0.5869, allocations: 111 kB / 458.6 MB, free: 3.422 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001849/0.5871, allocations: 64 kB / 458.6 MB, free: 3.359 MB / 366.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.001286/0.5884, allocations: 421.6 kB / 459 MB, free: 2.938 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008522/0.5893, allocations: 367.5 kB / 459.4 MB, free: 2.574 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005655/0.5949, allocations: 1.276 MB / 460.7 MB, free: 1.277 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.871e-05/0.595, allocations: 4 kB / 460.7 MB, free: 1.273 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.595, allocations: 0 / 460.7 MB, free: 1.273 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.397e-06/0.595, allocations: 7.922 kB / 460.7 MB, free: 1.266 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006133/0.6012, allocations: 2.193 MB / 462.9 MB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001776/0.6014, allocations: 69 kB / 463 MB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004874/0.6019, allocations: 63.88 kB / 463 MB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007954/0.6027, allocations: 268.8 kB / 463.3 MB, free: 14.6 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001209/0.6028, allocations: 35.98 kB / 463.3 MB, free: 14.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001477/0.6043, allocations: 0.8585 MB / 464.2 MB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.965e-06/0.6044, allocations: 7.969 kB / 464.2 MB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003134/0.6075, allocations: 1.125 MB / 465.3 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00148/0.609, allocations: 464.4 kB / 465.8 MB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007664/0.6098, allocations: 16.98 kB / 465.8 MB, free: 12.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001562/0.6114, allocations: 31.91 kB / 465.8 MB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002493/0.6116, allocations: 63.94 kB / 465.9 MB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001238/0.6118, allocations: 36 kB / 465.9 MB, free: 11.88 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.005344/0.6171, allocations: 1.82 MB / 467.7 MB, free: 10.06 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6172, allocations: 4 kB / 467.7 MB, free: 10.05 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002702/0.6199, allocations: 0.5623 MB / 468.3 MB, free: 9.492 MB / 382.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.00565/0.6255, allocations: 2.363 MB / 470.7 MB, free: 7.086 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00321/0.6288, allocations: 0.8582 MB / 471.5 MB, free: 6.203 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.269e-06/0.6288, allocations: 128 / 471.5 MB, free: 6.203 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001571/0.6304, allocations: 492.1 kB / 472 MB, free: 5.699 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004982/0.6354, allocations: 0.6124 MB / 472.6 MB, free: 5.082 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04365/0.6791, allocations: 20.14 MB / 492.7 MB, free: 14.95 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001931/0.681, allocations: 1.6 MB / 494.3 MB, free: 13.32 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002282/0.6833, allocations: 394.9 kB / 494.7 MB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00189/0.6853, allocations: 1.12 MB / 495.9 MB, free: 11.81 MB / 414.1 MB Notification: Performance of SimCode: time 2.324e-06/0.6853, allocations: 0 / 495.9 MB, free: 11.81 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3497/1.035, allocations: 61.63 MB / 0.5444 GB, free: 148.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.71/23.74, allocations: 14.41 kB / 0.5444 GB, free: 148.5 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches