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.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.001327/0.001327, allocations: 109.6 kB / 21.18 MB, free: 0.6992 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.001492/0.001492, allocations: 216.7 kB / 24.5 MB, free: 4.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.349/1.349, allocations: 207.6 MB / 235.3 MB, free: 10.01 MB / 190.1 MB " [Timeout remaining time 178] 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.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_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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001752/0.001752, allocations: 59.41 kB / 347.2 MB, free: 10.06 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.2636, allocations: 49.16 MB / 396.3 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.01007/0.2737, allocations: 13.42 MB / 409.8 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02416/0.2979, allocations: 19.41 MB / 429.2 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002583/0.3005, allocations: 196.1 kB / 429.4 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002891/0.3033, allocations: 1.107 MB / 430.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007803/0.3111, allocations: 2.28 MB / 432.7 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004747/0.3159, allocations: 1.386 MB / 434.1 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01075/0.3266, allocations: 6.266 MB / 440.4 MB, free: 7.145 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007209/0.3274, allocations: 249 kB / 440.6 MB, free: 6.867 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002038/0.3294, allocations: 1.023 MB / 441.7 MB, free: 5.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001427/0.3308, allocations: 1.025 MB / 442.7 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001582/0.331, allocations: 68 kB / 442.7 MB, free: 4.742 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004372/0.3354, allocations: 1.159 MB / 443.9 MB, free: 3.582 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003508/0.3357, allocations: 305.7 kB / 444.2 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001446/0.3372, allocations: 1.312 MB / 445.5 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005949/0.3431, allocations: 3.671 MB / 449.2 MB, free: 14.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.3431, allocations: 4 kB / 449.2 MB, free: 14.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.868e-06/0.3431, allocations: 4 kB / 449.2 MB, free: 14.27 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.387e-05/0.3432, allocations: 0 / 449.2 MB, free: 14.27 MB / 366.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.005663/0.3488, allocations: 3.578 MB / 452.8 MB, free: 10.63 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.3489, allocations: 11.98 kB / 452.8 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001312/0.349, allocations: 98.5 kB / 452.9 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004696/0.3495, allocations: 393.6 kB / 453.3 MB, free: 10.12 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003974/0.3535, allocations: 2.374 MB / 455.6 MB, free: 7.652 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.812e-05/0.3535, allocations: 40.92 kB / 455.7 MB, free: 7.613 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001188/0.3536, allocations: 51.95 kB / 455.7 MB, free: 7.562 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001312/0.3549, allocations: 0.707 MB / 456.4 MB, free: 6.852 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.355, allocations: 0 / 456.4 MB, free: 6.852 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.306e-05/0.355, allocations: 16 kB / 456.5 MB, free: 6.836 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.416e-05/0.355, allocations: 19.98 kB / 456.5 MB, free: 6.816 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0015/0.3565, allocations: 0.7968 MB / 457.3 MB, free: 6.016 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005011/0.3615, allocations: 2.84 MB / 460.1 MB, free: 3.125 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0012/0.3627, allocations: 0.5674 MB / 460.7 MB, free: 2.547 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009807/0.3637, allocations: 0.5811 MB / 461.3 MB, free: 1.965 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02669/0.3904, allocations: 13.77 MB / 475 MB, free: 3.805 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000786/0.3912, allocations: 369.3 kB / 475.4 MB, free: 3.43 MB / 382.1 MB Notification: Performance of pre-optimization done (n=49): time 2.765e-06/0.3912, allocations: 0 / 475.4 MB, free: 3.43 MB / 382.1 MB Notification: Performance of matching and sorting (n=49): time 0.00329/0.3945, allocations: 1.318 MB / 476.7 MB, free: 2.102 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.172e-05/0.3946, allocations: 67.34 kB / 476.8 MB, free: 2.023 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003651/0.3982, allocations: 2.816 MB / 479.6 MB, free: 15.19 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.761e-05/0.3983, allocations: 33.69 kB / 479.6 MB, free: 15.15 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001347/0.3996, allocations: 1.408 MB / 481 MB, free: 13.73 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001701/0.3998, allocations: 174.5 kB / 481.2 MB, free: 13.56 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003041/0.4001, allocations: 226.4 kB / 481.4 MB, free: 13.34 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.4003, allocations: 342 kB / 481.8 MB, free: 13 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005877/0.4008, allocations: 233.9 kB / 482 MB, free: 12.77 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009095/0.4018, allocations: 0.5966 MB / 482.6 MB, free: 12.01 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001511/0.4033, allocations: 0.8802 MB / 483.5 MB, free: 10.96 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.875e-06/0.4033, allocations: 4 kB / 483.5 MB, free: 10.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002362/0.4056, allocations: 1.289 MB / 484.8 MB, free: 9.652 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.508e-05/0.4057, allocations: 11.94 kB / 484.8 MB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001255/0.4058, allocations: 87.98 kB / 484.9 MB, free: 9.555 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005663/0.4064, allocations: 273.2 kB / 485.1 MB, free: 9.285 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005776/0.4069, allocations: 167.7 kB / 485.3 MB, free: 9.121 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001043/0.408, allocations: 0.8803 MB / 486.2 MB, free: 8.215 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009097/0.4089, allocations: 115.2 kB / 486.3 MB, free: 8.102 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001084/0.409, allocations: 64 kB / 486.3 MB, free: 8.039 MB / 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.0007035/0.4097, allocations: 429.5 kB / 486.8 MB, free: 7.609 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003674/0.4101, allocations: 381.6 kB / 487.1 MB, free: 7.234 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002775/0.4128, allocations: 1.271 MB / 488.4 MB, free: 5.945 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.4129, allocations: 4 kB / 488.4 MB, free: 5.941 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.4129, allocations: 0 / 488.4 MB, free: 5.941 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.4129, allocations: 3.938 kB / 488.4 MB, free: 5.938 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003729/0.4166, allocations: 2.177 MB / 490.6 MB, free: 3.688 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001072/0.4167, allocations: 71.94 kB / 490.7 MB, free: 3.617 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003028/0.417, allocations: 63.88 kB / 490.7 MB, free: 3.555 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000474/0.4175, allocations: 260.9 kB / 491 MB, free: 3.297 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.646e-05/0.4175, allocations: 35.98 kB / 491 MB, free: 3.262 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009178/0.4185, allocations: 0.8723 MB / 491.9 MB, free: 2.363 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.4185, allocations: 0 / 491.9 MB, free: 2.363 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001805/0.4203, allocations: 1.135 MB / 493 MB, free: 1.188 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008085/0.4211, allocations: 415.2 kB / 493.4 MB, free: 0.7812 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002832/0.4214, allocations: 12 kB / 493.4 MB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006313/0.422, allocations: 31.95 kB / 493.5 MB, free: 0.7383 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001501/0.4221, allocations: 59.94 kB / 493.5 MB, free: 0.6797 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.051e-05/0.4222, allocations: 39.98 kB / 493.6 MB, free: 0.6406 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002397/0.4246, allocations: 1.836 MB / 495.4 MB, free: 14.8 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4246, allocations: 0 / 495.4 MB, free: 14.8 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001299/0.4259, allocations: 0.5735 MB / 496 MB, free: 14.23 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.003183/0.4291, allocations: 2.371 MB / 498.3 MB, free: 11.81 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001735/0.4308, allocations: 0.817 MB / 499.2 MB, free: 10.97 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.4308, allocations: 1.062 kB / 499.2 MB, free: 10.97 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009045/0.4317, allocations: 476 kB / 499.6 MB, free: 10.48 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001683/0.4334, allocations: 0.5063 MB / 0.4884 GB, free: 9.969 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02356/0.457, allocations: 16.14 MB / 0.5042 GB, free: 9.266 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001328/0.4583, allocations: 1.604 MB / 0.5057 GB, free: 7.633 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001067/0.4594, allocations: 391.1 kB / 0.5061 GB, free: 7.246 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001197/0.4606, allocations: 1.132 MB / 0.5072 GB, free: 6.113 MB / 430.1 MB Notification: Performance of SimCode: time 1.001e-06/0.4606, allocations: 0 / 0.5072 GB, free: 6.113 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2945/0.755, allocations: 63.52 MB / 0.5692 GB, free: 151.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.99/20.75, allocations: 8.016 kB / 0.5693 GB, free: 151.6 MB / 478.1 MB " [Timeout remaining time 639] (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 3.98724e-11 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "Error: Could not read variable mp2.S.v in file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 23.2586685760034]