Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001574/0.001574, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001719/0.001719, allocations: 209.8 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.452/1.452, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001569/0.001569, allocations: 47.92 kB / 377.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2258/0.2274, allocations: 53.35 MB / 431.1 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01371/0.2411, allocations: 11.83 MB / 442.9 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0245/0.2656, allocations: 17.53 MB / 460.4 MB, free: 9.16 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002055/0.2677, allocations: 185.9 kB / 460.6 MB, free: 8.977 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002813/0.2705, allocations: 1.034 MB / 461.6 MB, free: 7.938 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007027/0.2775, allocations: 2.312 MB / 464 MB, free: 5.605 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004183/0.2817, allocations: 1.402 MB / 465.4 MB, free: 4.203 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009827/0.2915, allocations: 6.478 MB / 471.8 MB, free: 13.7 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000565/0.2921, allocations: 249 kB / 472.1 MB, free: 13.43 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001544/0.2936, allocations: 1.116 MB / 473.2 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001316/0.2949, allocations: 1.052 MB / 474.2 MB, free: 11.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002117/0.2952, allocations: 68 kB / 474.3 MB, free: 11.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003236/0.2984, allocations: 1.241 MB / 475.6 MB, free: 9.938 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003228/0.2987, allocations: 305.8 kB / 475.9 MB, free: 9.637 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001088/0.2998, allocations: 0.9546 MB / 476.8 MB, free: 8.676 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004856/0.3047, allocations: 3.694 MB / 480.5 MB, free: 4.965 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.3047, allocations: 0 / 480.5 MB, free: 4.965 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3047, allocations: 4 kB / 480.5 MB, free: 4.961 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.681e-05/0.3047, allocations: 0 / 480.5 MB, free: 4.961 MB / 382.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.005446/0.3102, allocations: 3.551 MB / 484.1 MB, free: 1.355 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.3102, allocations: 8.031 kB / 484.1 MB, free: 1.348 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001273/0.3103, allocations: 98.5 kB / 484.2 MB, free: 1.242 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004507/0.3108, allocations: 389.6 kB / 484.5 MB, free: 0.8594 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004056/0.3148, allocations: 2.355 MB / 486.9 MB, free: 14.4 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.198e-05/0.3149, allocations: 32.98 kB / 486.9 MB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000133/0.315, allocations: 51.94 kB / 487 MB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001391/0.3164, allocations: 0.7031 MB / 487.7 MB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.3164, allocations: 0 / 487.7 MB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.394e-05/0.3165, allocations: 16 kB / 487.7 MB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.411e-05/0.3165, allocations: 19.98 kB / 487.7 MB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001586/0.3181, allocations: 0.7929 MB / 488.5 MB, free: 12.78 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005294/0.3234, allocations: 2.68 MB / 491.2 MB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001323/0.3247, allocations: 0.5635 MB / 491.8 MB, free: 9.484 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001053/0.3258, allocations: 0.5818 MB / 492.3 MB, free: 8.898 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02742/0.3532, allocations: 13.7 MB / 0.4942 GB, free: 10.81 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007926/0.354, allocations: 365.5 kB / 0.4945 GB, free: 10.44 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.695e-06/0.354, allocations: 0 / 0.4945 GB, free: 10.44 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003289/0.3573, allocations: 1.318 MB / 0.4958 GB, free: 9.109 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.449e-05/0.3573, allocations: 59.41 kB / 0.4959 GB, free: 9.039 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003618/0.3609, allocations: 2.819 MB / 0.4986 GB, free: 6.199 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.842e-05/0.361, allocations: 37.7 kB / 0.4987 GB, free: 6.156 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001337/0.3623, allocations: 1.396 MB / 0.5 GB, free: 4.754 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001736/0.3625, allocations: 170.6 kB / 0.5002 GB, free: 4.586 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003141/0.3628, allocations: 230.4 kB / 0.5004 GB, free: 4.355 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.363, allocations: 334 kB / 0.5007 GB, free: 4.023 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000618/0.3636, allocations: 241.8 kB / 0.501 GB, free: 3.785 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008951/0.3645, allocations: 0.6004 MB / 0.5015 GB, free: 3.02 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001542/0.366, allocations: 0.8725 MB / 0.5024 GB, free: 1.977 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.997e-06/0.3661, allocations: 4 kB / 0.5024 GB, free: 1.973 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002468/0.3685, allocations: 1.285 MB / 0.5037 GB, free: 0.6797 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.923e-05/0.3686, allocations: 12 kB / 0.5037 GB, free: 0.668 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001772/0.3687, allocations: 83.98 kB / 0.5037 GB, free: 0.5859 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005847/0.3693, allocations: 277.3 kB / 0.504 GB, free: 320 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005959/0.3699, allocations: 163.7 kB / 0.5042 GB, free: 156 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001066/0.371, allocations: 0.8857 MB / 0.505 GB, free: 15.24 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001063/0.372, allocations: 119.4 kB / 0.5051 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000107/0.3721, allocations: 60 kB / 0.5052 GB, free: 15.07 MB / 430.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.0007697/0.3729, allocations: 425.5 kB / 0.5056 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000422/0.3733, allocations: 381.6 kB / 0.506 GB, free: 14.27 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002855/0.3762, allocations: 1.255 MB / 0.5072 GB, free: 13 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.656e-06/0.3762, allocations: 4 kB / 0.5072 GB, free: 12.99 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.3762, allocations: 0 / 0.5072 GB, free: 12.99 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.3762, allocations: 3.938 kB / 0.5072 GB, free: 12.99 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004007/0.3802, allocations: 2.106 MB / 0.5093 GB, free: 10.81 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001125/0.3803, allocations: 72 kB / 0.5093 GB, free: 10.74 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003196/0.3807, allocations: 63.88 kB / 0.5094 GB, free: 10.68 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005/0.3812, allocations: 264.9 kB / 0.5096 GB, free: 10.41 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.63e-05/0.3812, allocations: 31.98 kB / 0.5097 GB, free: 10.38 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000983/0.3822, allocations: 0.8625 MB / 0.5105 GB, free: 9.496 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.9e-06/0.3822, allocations: 4.031 kB / 0.5105 GB, free: 9.492 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002193/0.3844, allocations: 1.143 MB / 0.5116 GB, free: 8.309 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001015/0.3854, allocations: 411.2 kB / 0.512 GB, free: 7.902 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002823/0.3857, allocations: 12 kB / 0.512 GB, free: 7.891 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006597/0.3864, allocations: 31.95 kB / 0.5121 GB, free: 7.859 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001594/0.3865, allocations: 59.94 kB / 0.5121 GB, free: 7.801 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.857e-05/0.3866, allocations: 43.98 kB / 0.5122 GB, free: 7.758 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002613/0.3892, allocations: 1.824 MB / 0.5139 GB, free: 5.93 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3892, allocations: 0 / 0.5139 GB, free: 5.93 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001395/0.3906, allocations: 0.5657 MB / 0.5145 GB, free: 5.363 MB / 430.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.003384/0.394, allocations: 2.374 MB / 0.5168 GB, free: 2.945 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0019/0.3959, allocations: 0.8264 MB / 0.5176 GB, free: 2.098 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3959, allocations: 128 / 0.5176 GB, free: 2.098 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009887/0.3969, allocations: 475.9 kB / 0.5181 GB, free: 1.609 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002684/0.3996, allocations: 0.598 MB / 0.5187 GB, free: 1.008 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02378/0.4233, allocations: 16 MB / 0.5343 GB, free: 448 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1729/0.5963, allocations: 1.042 MB / 0.5353 GB, free: 107.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001171/0.5975, allocations: 390 kB / 0.5357 GB, free: 107.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009861/0.5984, allocations: 1.127 MB / 0.5368 GB, free: 107.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.162e-06/0.5984, allocations: 3.844 kB / 0.5368 GB, free: 107.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09105/0.6895, allocations: 63.6 MB / 0.5989 GB, free: 50.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.51/17.2, allocations: 11.98 kB / 0.5989 GB, free: 50.48 MB / 446.1 MB " [Timeout remaining time 643] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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 3.98724e-11 Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable mp2.S.v in file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nand_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.79929991599056]