Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001324/0.001324, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001415/0.001415, allocations: 207.8 kB / 23.73 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.432/1.432, allocations: 230.5 MB / 257.4 MB, free: 7.762 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001969/0.001969, allocations: 59.89 kB / 377.7 MB, free: 2.824 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2135/0.2155, allocations: 53.41 MB / 431.1 MB, free: 6.461 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01352/0.229, allocations: 11.83 MB / 443 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02324/0.2522, allocations: 17.53 MB / 460.5 MB, free: 8.984 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001399/0.2536, allocations: 189.8 kB / 460.7 MB, free: 8.797 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00241/0.256, allocations: 1.022 MB / 461.7 MB, free: 7.77 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005715/0.2618, allocations: 2.315 MB / 464 MB, free: 5.438 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003635/0.2654, allocations: 1.406 MB / 465.4 MB, free: 4.031 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009495/0.2749, allocations: 6.478 MB / 471.9 MB, free: 13.53 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004928/0.2754, allocations: 244.9 kB / 472.1 MB, free: 13.26 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001527/0.2769, allocations: 1.108 MB / 473.2 MB, free: 12.14 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001307/0.2782, allocations: 1.005 MB / 474.3 MB, free: 11.13 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001902/0.2784, allocations: 71.94 kB / 474.3 MB, free: 11.06 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00329/0.2817, allocations: 1.202 MB / 475.5 MB, free: 9.859 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003154/0.282, allocations: 313.7 kB / 475.8 MB, free: 9.551 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001003/0.283, allocations: 0.9585 MB / 476.8 MB, free: 8.586 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004633/0.2877, allocations: 3.687 MB / 480.5 MB, free: 4.883 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2877, allocations: 0 / 480.5 MB, free: 4.883 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2877, allocations: 0 / 480.5 MB, free: 4.883 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.818e-05/0.2877, allocations: 0 / 480.5 MB, free: 4.883 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.005348/0.2931, allocations: 3.555 MB / 484 MB, free: 1.273 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.2931, allocations: 15.98 kB / 484 MB, free: 1.258 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001238/0.2932, allocations: 94.52 kB / 484.1 MB, free: 1.156 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004455/0.2937, allocations: 393.6 kB / 484.5 MB, free: 0.7695 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004004/0.2977, allocations: 2.359 MB / 486.9 MB, free: 14.31 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.655e-05/0.2977, allocations: 29 kB / 486.9 MB, free: 14.28 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001247/0.2978, allocations: 48 kB / 487 MB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001357/0.2992, allocations: 0.7031 MB / 487.7 MB, free: 13.52 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/0.2992, allocations: 4 kB / 487.7 MB, free: 13.52 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.695e-05/0.2993, allocations: 23.92 kB / 487.7 MB, free: 13.5 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.033e-05/0.2993, allocations: 16 kB / 487.7 MB, free: 13.48 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001623/0.3009, allocations: 0.7929 MB / 488.5 MB, free: 12.69 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004889/0.3058, allocations: 2.683 MB / 491.2 MB, free: 9.957 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001272/0.3071, allocations: 0.5707 MB / 491.8 MB, free: 9.383 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001045/0.3081, allocations: 0.5772 MB / 492.3 MB, free: 8.801 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02595/0.3341, allocations: 13.7 MB / 0.4942 GB, free: 10.71 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000803/0.3349, allocations: 369.5 kB / 0.4945 GB, free: 10.34 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.394e-06/0.3349, allocations: 0 / 0.4945 GB, free: 10.34 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.003186/0.3381, allocations: 1.322 MB / 0.4958 GB, free: 9.012 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.803e-05/0.3381, allocations: 59.41 kB / 0.4959 GB, free: 8.941 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003515/0.3416, allocations: 2.815 MB / 0.4986 GB, free: 6.105 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.266e-05/0.3417, allocations: 33.7 kB / 0.4986 GB, free: 6.066 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001365/0.3431, allocations: 1.4 MB / 0.5 GB, free: 4.66 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001689/0.3432, allocations: 170.6 kB / 0.5002 GB, free: 4.492 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000309/0.3435, allocations: 222.4 kB / 0.5004 GB, free: 4.27 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001817/0.3437, allocations: 341.9 kB / 0.5007 GB, free: 3.93 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006081/0.3443, allocations: 237.9 kB / 0.5009 GB, free: 3.695 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009218/0.3453, allocations: 0.5927 MB / 0.5015 GB, free: 2.938 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001587/0.3468, allocations: 0.8841 MB / 0.5024 GB, free: 1.879 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.725e-06/0.3468, allocations: 4 kB / 0.5024 GB, free: 1.875 MB / 414.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002329/0.3492, allocations: 1.277 MB / 0.5036 GB, free: 0.5898 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.3492, allocations: 8 kB / 0.5036 GB, free: 0.582 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000127/0.3493, allocations: 80.91 kB / 0.5037 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005612/0.3499, allocations: 280.7 kB / 0.504 GB, free: 232 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005914/0.3505, allocations: 171.6 kB / 0.5041 GB, free: 60 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001084/0.3516, allocations: 0.891 MB / 0.505 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009602/0.3525, allocations: 107.3 kB / 0.5051 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001072/0.3526, allocations: 64 kB / 0.5052 GB, free: 14.98 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.0007535/0.3534, allocations: 430 kB / 0.5056 GB, free: 14.55 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004308/0.3538, allocations: 385.6 kB / 0.506 GB, free: 14.17 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002906/0.3567, allocations: 1.263 MB / 0.5072 GB, free: 12.89 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/0.3567, allocations: 4 kB / 0.5072 GB, free: 12.89 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.3567, allocations: 0 / 0.5072 GB, free: 12.89 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.86e-05/0.3568, allocations: 11.92 kB / 0.5072 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003963/0.3607, allocations: 2.091 MB / 0.5093 GB, free: 10.71 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001119/0.3608, allocations: 71.98 kB / 0.5093 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003233/0.3611, allocations: 59.95 kB / 0.5094 GB, free: 10.58 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005132/0.3617, allocations: 268.8 kB / 0.5096 GB, free: 10.32 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.878e-05/0.3617, allocations: 32 kB / 0.5097 GB, free: 10.29 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001014/0.3627, allocations: 0.8641 MB / 0.5105 GB, free: 9.398 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.3627, allocations: 4.031 kB / 0.5105 GB, free: 9.395 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002067/0.3648, allocations: 1.138 MB / 0.5116 GB, free: 8.215 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009511/0.3658, allocations: 411.2 kB / 0.512 GB, free: 7.809 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000292/0.366, allocations: 15.98 kB / 0.512 GB, free: 7.793 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006814/0.3667, allocations: 27.97 kB / 0.5121 GB, free: 7.766 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001631/0.3669, allocations: 63.86 kB / 0.5121 GB, free: 7.703 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.089e-05/0.367, allocations: 40 kB / 0.5122 GB, free: 7.664 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00271/0.3697, allocations: 1.824 MB / 0.5139 GB, free: 5.836 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3697, allocations: 4 kB / 0.5139 GB, free: 5.832 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001371/0.3711, allocations: 0.5658 MB / 0.5145 GB, free: 5.266 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.003517/0.3746, allocations: 2.37 MB / 0.5168 GB, free: 2.852 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001853/0.3764, allocations: 0.8221 MB / 0.5176 GB, free: 2.008 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3764, allocations: 0 / 0.5176 GB, free: 2.008 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009593/0.3774, allocations: 471.9 kB / 0.5181 GB, free: 1.523 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002599/0.38, allocations: 0.6071 MB / 0.5187 GB, free: 0.9102 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02675/0.4067, allocations: 16 MB / 0.5343 GB, free: 352 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2006/0.6074, allocations: 1.045 MB / 0.5353 GB, free: 106.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001737/0.6091, allocations: 389.8 kB / 0.5357 GB, free: 106.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001441/0.6106, allocations: 1.126 MB / 0.5368 GB, free: 106.4 MB / 446.1 MB Notification: Performance of SimCode: time 1.232e-06/0.6106, allocations: 0 / 0.5368 GB, free: 106.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09363/0.7042, allocations: 63.34 MB / 0.5986 GB, free: 49.75 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.66/17.36, allocations: 9.031 kB / 0.5986 GB, free: 49.75 MB / 446.1 MB " [Timeout remaining time 642] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Nand_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.87350263260305]