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.001711/0.001711, allocations: 114.4 kB / 17.74 MB, free: 5.355 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.00201/0.00201, allocations: 183.1 kB / 18.66 MB, free: 4.434 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.323/1.323, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001395/0.001395, allocations: 52.34 kB / 328 MB, free: 3.84 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07959/0.081, allocations: 46.62 MB / 374.6 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.1809/0.2619, allocations: 13.37 MB / 388 MB, free: 5.305 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02215/0.2841, allocations: 19.32 MB / 407.3 MB, free: 7.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002847/0.287, allocations: 124.9 kB / 407.4 MB, free: 7.359 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003646/0.2907, allocations: 1.095 MB / 408.5 MB, free: 6.77 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008358/0.2991, allocations: 2.257 MB / 410.8 MB, free: 5.359 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005327/0.3044, allocations: 1.375 MB / 412.2 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01116/0.3156, allocations: 6.214 MB / 418.4 MB, free: 1.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008497/0.3165, allocations: 429.3 kB / 418.8 MB, free: 1.598 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001768/0.3183, allocations: 0.9728 MB / 419.8 MB, free: 1.148 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001408/0.3197, allocations: 1.038 MB / 420.8 MB, free: 0.543 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002142/0.3199, allocations: 70.09 kB / 420.9 MB, free: 0.543 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004456/0.3244, allocations: 1.151 MB / 422 MB, free: 220 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005538/0.325, allocations: 307 kB / 422.3 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001958/0.327, allocations: 1.303 MB / 423.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006384/0.3334, allocations: 3.683 MB / 427.3 MB, free: 11.13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.3334, allocations: 4 kB / 427.3 MB, free: 11.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.3334, allocations: 0 / 427.3 MB, free: 11.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.192e-05/0.3335, allocations: 0 / 427.3 MB, free: 11.12 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.005362/0.3389, allocations: 3.649 MB / 431 MB, free: 7.402 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.3389, allocations: 12.02 kB / 431 MB, free: 7.391 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001198/0.3391, allocations: 94.45 kB / 431.1 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004376/0.3395, allocations: 397.5 kB / 431.5 MB, free: 6.898 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003722/0.3433, allocations: 2.551 MB / 434 MB, free: 4.273 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.314e-05/0.3433, allocations: 37 kB / 434.1 MB, free: 4.234 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001318/0.3434, allocations: 47.95 kB / 434.1 MB, free: 4.188 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001326/0.3448, allocations: 0.703 MB / 434.8 MB, free: 3.477 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.474e-05/0.3448, allocations: 4 kB / 434.8 MB, free: 3.473 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.213e-05/0.3449, allocations: 23.98 kB / 434.8 MB, free: 3.449 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.391e-05/0.3449, allocations: 16 kB / 434.8 MB, free: 3.434 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001532/0.3465, allocations: 0.789 MB / 435.6 MB, free: 2.648 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005176/0.3516, allocations: 2.904 MB / 438.5 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001352/0.353, allocations: 0.7092 MB / 439.2 MB, free: 14.94 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001034/0.3541, allocations: 0.644 MB / 439.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02912/0.3832, allocations: 30.15 MB / 470 MB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007625/0.384, allocations: 377.1 kB / 470.4 MB, free: 11.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 1.707e-05/0.3841, allocations: 0 / 470.4 MB, free: 11.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.003173/0.3872, allocations: 1.402 MB / 471.8 MB, free: 10.23 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.27e-05/0.3873, allocations: 63.33 kB / 471.9 MB, free: 10.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003288/0.3906, allocations: 2.82 MB / 474.7 MB, free: 7.316 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.935e-05/0.3907, allocations: 33.7 kB / 474.7 MB, free: 7.277 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001091/0.3918, allocations: 1.408 MB / 476.1 MB, free: 5.863 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001747/0.392, allocations: 178.5 kB / 476.3 MB, free: 5.688 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003041/0.3923, allocations: 218.4 kB / 476.5 MB, free: 5.469 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001121/0.3924, allocations: 341.9 kB / 476.9 MB, free: 5.129 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005985/0.393, allocations: 240.5 kB / 477.1 MB, free: 4.895 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007687/0.3938, allocations: 0.5852 MB / 477.7 MB, free: 4.137 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001386/0.3952, allocations: 0.8802 MB / 478.6 MB, free: 3.09 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/0.3952, allocations: 4 kB / 478.6 MB, free: 3.086 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002362/0.3976, allocations: 1.305 MB / 479.9 MB, free: 1.766 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.67e-05/0.3976, allocations: 12 kB / 479.9 MB, free: 1.754 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001126/0.3978, allocations: 83.98 kB / 480 MB, free: 1.672 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005481/0.3983, allocations: 281.2 kB / 480.2 MB, free: 1.395 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005814/0.3989, allocations: 163.7 kB / 480.4 MB, free: 1.234 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009703/0.3999, allocations: 0.8881 MB / 481.3 MB, free: 328 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001077/0.401, allocations: 111.3 kB / 481.4 MB, free: 216 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001104/0.4011, allocations: 64 kB / 481.5 MB, free: 152 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.0007243/0.4018, allocations: 425.5 kB / 481.9 MB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000447/0.4023, allocations: 381.7 kB / 482.2 MB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002754/0.405, allocations: 1.279 MB / 483.5 MB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/0.4051, allocations: 4 kB / 483.5 MB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.4051, allocations: 0 / 483.5 MB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.929e-06/0.4051, allocations: 7.922 kB / 483.5 MB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003698/0.4088, allocations: 2.217 MB / 485.7 MB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.897e-05/0.4089, allocations: 68 kB / 485.8 MB, free: 11.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000327/0.4093, allocations: 67.88 kB / 485.9 MB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004766/0.4097, allocations: 264.8 kB / 486.1 MB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.878e-05/0.4098, allocations: 32 kB / 486.2 MB, free: 11.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009002/0.4107, allocations: 0.8654 MB / 487 MB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.4107, allocations: 3.984 kB / 487 MB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002044/0.4128, allocations: 1.147 MB / 488.2 MB, free: 9.242 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008646/0.4137, allocations: 482.4 kB / 488.7 MB, free: 8.75 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003104/0.414, allocations: 16 kB / 488.7 MB, free: 8.734 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006939/0.4147, allocations: 31.95 kB / 488.7 MB, free: 8.703 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001573/0.4149, allocations: 55.95 kB / 488.8 MB, free: 8.648 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.26e-05/0.415, allocations: 45.8 kB / 488.8 MB, free: 8.605 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002581/0.4175, allocations: 1.836 MB / 490.6 MB, free: 6.766 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.954e-06/0.4176, allocations: 0 / 490.6 MB, free: 6.766 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001472/0.419, allocations: 0.5773 MB / 491.2 MB, free: 6.188 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.00333/0.4224, allocations: 2.38 MB / 493.6 MB, free: 3.762 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001827/0.4242, allocations: 0.8613 MB / 494.5 MB, free: 2.883 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.4243, allocations: 0 / 494.5 MB, free: 2.883 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000933/0.4252, allocations: 0.5004 MB / 495 MB, free: 2.359 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002032/0.4272, allocations: 0.5087 MB / 495.5 MB, free: 1.848 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0234/0.4507, allocations: 16.15 MB / 0.4996 GB, free: 1.141 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001031/0.4517, allocations: 1.605 MB / 0.5012 GB, free: 15.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001102/0.4529, allocations: 395 kB / 0.5016 GB, free: 15.11 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001144/0.454, allocations: 1.128 MB / 0.5027 GB, free: 13.99 MB / 446.1 MB Notification: Performance of SimCode: time 2.205e-06/0.454, allocations: 4 kB / 0.5027 GB, free: 13.98 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2714/0.7254, allocations: 62.59 MB / 0.5638 GB, free: 149.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.66/19.38, allocations: 13.38 kB / 0.5638 GB, free: 149.7 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