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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9179/0.9179, allocations: 173.4 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.903e-06/1.903e-06, allocations: 0 / 318.4 MB, free: 6.242 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.942e-05/2.132e-05, allocations: 2.281 kB / 318.4 MB, free: 6.238 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nand): time 0.008006/0.008028, allocations: 11.83 MB / 330.2 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01564/0.02367, allocations: 17.49 MB / 347.7 MB, free: 8.789 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001953/0.02562, allocations: 189.8 kB / 347.9 MB, free: 8.602 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002069/0.02769, allocations: 1.04 MB / 349 MB, free: 7.555 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005157/0.03285, allocations: 2.382 MB / 351.4 MB, free: 5.152 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00319/0.03604, allocations: 1.426 MB / 352.8 MB, free: 3.723 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.006704/0.04274, allocations: 6.558 MB / 359.3 MB, free: 13.14 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006022/0.04335, allocations: 244.9 kB / 359.6 MB, free: 12.87 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001859/0.0452, allocations: 1.504 MB / 361.1 MB, free: 11.36 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006648/0.04587, allocations: 0.7551 MB / 361.8 MB, free: 10.6 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 9.438e-05/0.04596, allocations: 68 kB / 361.9 MB, free: 10.54 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002696/0.04866, allocations: 1.206 MB / 363.1 MB, free: 9.328 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001728/0.04883, allocations: 309.8 kB / 363.4 MB, free: 9.023 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006371/0.04947, allocations: 0.697 MB / 364.1 MB, free: 8.324 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003179/0.05265, allocations: 3.632 MB / 367.7 MB, free: 4.68 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.05265, allocations: 0 / 367.7 MB, free: 4.68 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.05265, allocations: 0 / 367.7 MB, free: 4.68 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.194e-05/0.05269, allocations: 3.938 kB / 367.7 MB, free: 4.676 MB / 330.7 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.003147/0.05583, allocations: 3.515 MB / 371.3 MB, free: 1.109 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.05588, allocations: 8.922 kB / 371.3 MB, free: 1.102 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.294e-05/0.05597, allocations: 98.5 kB / 371.4 MB, free: 0.9961 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000263/0.05623, allocations: 393.6 kB / 371.7 MB, free: 0.6094 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002313/0.05855, allocations: 2.359 MB / 374.1 MB, free: 14.15 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.374e-05/0.05857, allocations: 29 kB / 374.1 MB, free: 14.12 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.565e-05/0.05866, allocations: 55.89 kB / 374.2 MB, free: 14.07 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008404/0.0595, allocations: 0.7031 MB / 374.9 MB, free: 13.36 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.05951, allocations: 0 / 374.9 MB, free: 13.36 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.446e-05/0.05955, allocations: 16 kB / 374.9 MB, free: 13.34 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.49e-05/0.05957, allocations: 19.98 kB / 374.9 MB, free: 13.32 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008993/0.06047, allocations: 0.7929 MB / 375.7 MB, free: 12.53 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003041/0.06351, allocations: 2.684 MB / 378.4 MB, free: 9.793 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007261/0.06423, allocations: 0.5588 MB / 379 MB, free: 9.227 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005902/0.06482, allocations: 0.5811 MB / 379.5 MB, free: 8.645 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01434/0.07916, allocations: 13.66 MB / 393.2 MB, free: 10.6 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004697/0.07963, allocations: 357.8 kB / 393.6 MB, free: 10.24 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 2.274e-06/0.07964, allocations: 0 / 393.6 MB, free: 10.24 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.001839/0.08148, allocations: 1.324 MB / 394.9 MB, free: 8.902 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.096e-05/0.08152, allocations: 59.41 kB / 394.9 MB, free: 8.832 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002252/0.08377, allocations: 2.823 MB / 397.8 MB, free: 5.988 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.919e-05/0.08381, allocations: 37.7 kB / 397.8 MB, free: 5.945 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007733/0.08458, allocations: 1.396 MB / 399.2 MB, free: 4.543 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001007/0.08468, allocations: 170.6 kB / 399.4 MB, free: 4.375 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001857/0.08487, allocations: 218.4 kB / 399.6 MB, free: 4.156 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.923e-05/0.08496, allocations: 337.9 kB / 399.9 MB, free: 3.82 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003275/0.08528, allocations: 237.9 kB / 400.1 MB, free: 3.586 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004743/0.08576, allocations: 0.5927 MB / 400.7 MB, free: 2.824 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008648/0.08662, allocations: 0.8889 MB / 401.6 MB, free: 1.766 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.08663, allocations: 4 kB / 401.6 MB, free: 1.762 MB / 362.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001365/0.08799, allocations: 1.282 MB / 402.9 MB, free: 476 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.148e-05/0.08802, allocations: 12 kB / 402.9 MB, free: 464 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.375e-05/0.08808, allocations: 83.98 kB / 403 MB, free: 380 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003524/0.08843, allocations: 273.2 kB / 403.3 MB, free: 104 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000314/0.08875, allocations: 171.7 kB / 403.4 MB, free: 15.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006532/0.0894, allocations: 0.8802 MB / 404.3 MB, free: 15.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005345/0.08993, allocations: 119.3 kB / 404.4 MB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.194e-05/0.09001, allocations: 60 kB / 404.5 MB, free: 14.85 MB / 378.7 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.0005579/0.09056, allocations: 422.1 kB / 404.9 MB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002192/0.09078, allocations: 385.5 kB / 405.3 MB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001692/0.09247, allocations: 1.256 MB / 406.5 MB, free: 12.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.09248, allocations: 7.984 kB / 406.5 MB, free: 12.78 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.09249, allocations: 4 kB / 406.5 MB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.09249, allocations: 0 / 406.5 MB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002264/0.09476, allocations: 2.112 MB / 408.7 MB, free: 10.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.589e-05/0.09481, allocations: 68 kB / 408.7 MB, free: 10.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001692/0.09498, allocations: 59.94 kB / 408.8 MB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002825/0.09526, allocations: 264.8 kB / 409 MB, free: 10.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.465e-05/0.0953, allocations: 35.94 kB / 409.1 MB, free: 10.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005554/0.09585, allocations: 0.8679 MB / 409.9 MB, free: 9.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.09586, allocations: 3.938 kB / 409.9 MB, free: 9.266 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001294/0.09715, allocations: 1.136 MB / 411.1 MB, free: 8.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000438/0.09759, allocations: 407.3 kB / 411.5 MB, free: 7.688 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001424/0.09773, allocations: 11.94 kB / 411.5 MB, free: 7.676 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003551/0.09809, allocations: 35.95 kB / 411.5 MB, free: 7.641 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.09819, allocations: 63.88 kB / 411.6 MB, free: 7.578 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.562e-05/0.09824, allocations: 39.98 kB / 411.6 MB, free: 7.539 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001513/0.09975, allocations: 1.82 MB / 413.4 MB, free: 5.715 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.09975, allocations: 0 / 413.4 MB, free: 5.715 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000834/0.1006, allocations: 0.5657 MB / 414 MB, free: 5.148 MB / 378.7 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.002009/0.1026, allocations: 2.416 MB / 416.4 MB, free: 2.695 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001064/0.1037, allocations: 0.8187 MB / 417.2 MB, free: 1.855 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.1037, allocations: 0 / 417.2 MB, free: 1.855 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005258/0.1042, allocations: 476.4 kB / 417.7 MB, free: 1.363 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001585/0.1058, allocations: 0.5954 MB / 418.3 MB, free: 0.7617 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01728/0.123, allocations: 16.01 MB / 434.3 MB, free: 200 kB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006358/0.1237, allocations: 1.045 MB / 435.4 MB, free: 15.12 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007654/0.1244, allocations: 390.9 kB / 435.7 MB, free: 14.73 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007423/0.1252, allocations: 1.125 MB / 436.9 MB, free: 13.61 MB / 410.7 MB Notification: Performance of SimCode: time 1.513e-06/0.1252, allocations: 0 / 436.9 MB, free: 13.61 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2027/0.3279, allocations: 63.34 MB / 0.4885 GB, free: 80.67 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.689/10.02, allocations: 7.297 kB / 0.4885 GB, free: 80.67 MB / 410.7 MB " [Timeout remaining time 650] (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 3.98724e-11 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nand/Nand.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.csv. Warning: Get data of variable mp2.S.v from file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.924523368477821]