Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.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.CascodeCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit",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.001353/0.001353, allocations: 104 kB / 17.58 MB, free: 5.418 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.001323/0.001323, allocations: 187.9 kB / 18.5 MB, free: 4.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.109/2.109, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001162/0.001162, allocations: 52.14 kB / 280.7 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0792/0.08037, allocations: 46.63 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005718/0.08613, allocations: 5.149 MB / 332.5 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00922/0.09537, allocations: 8.661 MB / 341.2 MB, free: 6.5 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006464/0.09605, allocations: 23.81 kB / 341.2 MB, free: 6.477 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009688/0.09707, allocations: 381.4 kB / 341.6 MB, free: 6.102 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002165/0.09925, allocations: 0.8105 MB / 342.4 MB, free: 5.285 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001486/0.1007, allocations: 0.583 MB / 343 MB, free: 4.699 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002309/0.1031, allocations: 1.646 MB / 344.6 MB, free: 3.047 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002764/0.1034, allocations: 167 kB / 344.8 MB, free: 2.871 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000336/0.1037, allocations: 282.5 kB / 345.1 MB, free: 2.594 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003583/0.1041, allocations: 310.1 kB / 345.4 MB, free: 2.289 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.336e-05/0.1042, allocations: 28 kB / 345.4 MB, free: 2.262 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001162/0.1053, allocations: 0.5621 MB / 346 MB, free: 1.699 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.774e-05/0.1054, allocations: 99.33 kB / 346.1 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003677/0.1058, allocations: 417.5 kB / 346.5 MB, free: 1.191 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001306/0.1071, allocations: 1.183 MB / 347.6 MB, free: 4 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.1071, allocations: 0 / 347.6 MB, free: 4 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.133e-06/0.1072, allocations: 0 / 347.6 MB, free: 4 kB / 286.1 MB Notification: Performance of Transformations before backend: time 2.23e-05/0.1072, allocations: 0 / 347.6 MB, free: 4 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001858/0.109, allocations: 1.279 MB / 348.9 MB, free: 14.67 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.1091, allocations: 12.03 kB / 348.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.46e-05/0.1092, allocations: 58.73 kB / 349 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001458/0.1093, allocations: 115.6 kB / 349.1 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001145/0.1105, allocations: 0.8552 MB / 350 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.876e-05/0.1105, allocations: 16.56 kB / 350 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.277e-05/0.1106, allocations: 24 kB / 350 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004899/0.1111, allocations: 307.6 kB / 350.3 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.1111, allocations: 0 / 350.3 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3e-05/0.1111, allocations: 12 kB / 350.3 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/0.1111, allocations: 11.98 kB / 350.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004174/0.1116, allocations: 234.2 kB / 350.6 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001682/0.1132, allocations: 1.186 MB / 351.7 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003449/0.1136, allocations: 190.7 kB / 351.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003133/0.1139, allocations: 221.3 kB / 352.1 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008237/0.1222, allocations: 8.573 MB / 360.7 MB, free: 1.328 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.668e-05/0.1222, allocations: 30.56 kB / 360.7 MB, free: 1.289 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.984e-06/0.1222, allocations: 0 / 360.7 MB, free: 1.289 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001589/0.1238, allocations: 0.6621 MB / 361.4 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.662e-05/0.1239, allocations: 81.11 kB / 361.5 MB, free: 0.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009807/0.1249, allocations: 0.8026 MB / 362.3 MB, free: 15.68 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.306e-05/0.1249, allocations: 29.7 kB / 362.3 MB, free: 15.64 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003427/0.1253, allocations: 440.6 kB / 362.7 MB, free: 15.21 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.03e-05/0.1253, allocations: 82.84 kB / 362.8 MB, free: 15.13 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.491e-05/0.1254, allocations: 53.94 kB / 362.9 MB, free: 15.07 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.1255, allocations: 317.9 kB / 363.2 MB, free: 14.75 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001408/0.1257, allocations: 64.22 kB / 363.3 MB, free: 14.69 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001982/0.1259, allocations: 150.3 kB / 363.4 MB, free: 14.51 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003483/0.1263, allocations: 236.9 kB / 363.6 MB, free: 14.25 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1263, allocations: 3.938 kB / 363.6 MB, free: 14.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006565/0.1269, allocations: 412.9 kB / 364 MB, free: 13.83 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.127, allocations: 8 kB / 364 MB, free: 13.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.937e-05/0.127, allocations: 15.94 kB / 364.1 MB, free: 13.81 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004023/0.1274, allocations: 148.3 kB / 364.2 MB, free: 13.66 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001765/0.1276, allocations: 31.98 kB / 364.2 MB, free: 13.63 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007228/0.1283, allocations: 0.7083 MB / 364.9 MB, free: 12.9 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002635/0.1286, allocations: 27.69 kB / 365 MB, free: 12.87 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.642e-05/0.1287, allocations: 20.06 kB / 365 MB, free: 12.85 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * 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,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0002624/0.1289, allocations: 193.8 kB / 365.2 MB, free: 12.65 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001407/0.1291, allocations: 114.7 kB / 365.3 MB, free: 12.54 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008534/0.1299, allocations: 399.4 kB / 365.7 MB, free: 12.13 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.13, allocations: 4 kB / 365.7 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.13, allocations: 0 / 365.7 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.13, allocations: 0 / 365.7 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006534/0.1306, allocations: 0.5112 MB / 366.2 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.376e-05/0.1307, allocations: 15.94 kB / 366.2 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001275/0.1308, allocations: 19.98 kB / 366.2 MB, free: 11.53 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002697/0.1311, allocations: 132.8 kB / 366.4 MB, free: 11.4 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.801e-05/0.1311, allocations: 8 kB / 366.4 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005909/0.1317, allocations: 0.6967 MB / 367.1 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.1317, allocations: 3.984 kB / 367.1 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006186/0.1324, allocations: 451.8 kB / 367.5 MB, free: 10.2 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002263/0.1326, allocations: 179.8 kB / 367.7 MB, free: 10.01 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.552e-05/0.1327, allocations: 7.938 kB / 367.7 MB, free: 10 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002182/0.1329, allocations: 4 kB / 367.7 MB, free: 9.996 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.149e-05/0.133, allocations: 19.92 kB / 367.7 MB, free: 9.977 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.488e-05/0.133, allocations: 11.98 kB / 367.7 MB, free: 9.965 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006897/0.1337, allocations: 0.5462 MB / 368.3 MB, free: 9.41 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1337, allocations: 0 / 368.3 MB, free: 9.41 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005593/0.1343, allocations: 195.8 kB / 368.5 MB, free: 9.219 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * 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,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001227/0.1355, allocations: 1.177 MB / 369.6 MB, free: 8.012 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005918/0.1361, allocations: 276 kB / 369.9 MB, free: 7.73 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.522e-05/0.1362, allocations: 0 / 369.9 MB, free: 7.73 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003056/0.1365, allocations: 183.5 kB / 370.1 MB, free: 7.539 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006057/0.1371, allocations: 149.1 kB / 370.2 MB, free: 7.395 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006713/0.1438, allocations: 5.659 MB / 375.9 MB, free: 1.438 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004889/0.1443, allocations: 0.9411 MB / 376.8 MB, free: 480 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003643/0.1447, allocations: 114.6 kB / 377 MB, free: 360 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003122/0.145, allocations: 311.3 kB / 377.3 MB, free: 48 kB / 318.1 MB Notification: Performance of SimCode: time 8.02e-07/0.145, allocations: 0 / 377.3 MB, free: 48 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1892/0.3343, allocations: 18.08 MB / 395.3 MB, free: 47.51 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.01/12.34, allocations: 0 / 395.3 MB, free: 47.51 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 0.0002 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches