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.001161/0.001161, allocations: 114.4 kB / 17.28 MB, free: 6.219 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.001065/0.001065, allocations: 193.3 kB / 18.19 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.659/1.659, allocations: 205.1 MB / 224.1 MB, free: 12.45 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.001243/0.001243, allocations: 51.92 kB / 280.2 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1183, allocations: 46.63 MB / 326.9 MB, free: 4.707 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.007023/0.1254, allocations: 5.17 MB / 332 MB, free: 15.51 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01204/0.1374, allocations: 8.592 MB / 340.6 MB, free: 6.883 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00104/0.1385, allocations: 19.88 kB / 340.7 MB, free: 6.863 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001378/0.14, allocations: 338.1 kB / 341 MB, free: 6.531 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003272/0.1433, allocations: 0.6949 MB / 341.7 MB, free: 5.832 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001911/0.1452, allocations: 0.5097 MB / 342.2 MB, free: 5.32 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002919/0.1482, allocations: 1.658 MB / 343.8 MB, free: 3.656 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004327/0.1486, allocations: 163 kB / 344 MB, free: 3.484 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003622/0.149, allocations: 278.6 kB / 344.3 MB, free: 3.211 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003588/0.1493, allocations: 314.1 kB / 344.6 MB, free: 2.902 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.768e-05/0.1494, allocations: 28 kB / 344.6 MB, free: 2.875 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001262/0.1507, allocations: 0.562 MB / 345.2 MB, free: 2.312 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.934e-05/0.1508, allocations: 99.33 kB / 345.3 MB, free: 2.215 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003461/0.1511, allocations: 413.4 kB / 345.7 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001536/0.1527, allocations: 1.195 MB / 346.9 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.127e-06/0.1527, allocations: 0 / 346.9 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.1527, allocations: 0 / 346.9 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.364e-05/0.1527, allocations: 0 / 346.9 MB, free: 0.6094 MB / 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.002458/0.1552, allocations: 1.271 MB / 348.1 MB, free: 15.29 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.241e-05/0.1553, allocations: 12.03 kB / 348.2 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001055/0.1554, allocations: 62.72 kB / 348.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001949/0.1556, allocations: 115.6 kB / 348.3 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001382/0.157, allocations: 0.8591 MB / 349.2 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.844e-05/0.157, allocations: 16.56 kB / 349.2 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.433e-05/0.1571, allocations: 24 kB / 349.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006203/0.1577, allocations: 307.7 kB / 349.5 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.34e-05/0.1578, allocations: 0 / 349.5 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.428e-05/0.1578, allocations: 12 kB / 349.5 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/0.1578, allocations: 4 kB / 349.5 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004659/0.1583, allocations: 238.1 kB / 349.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001858/0.1602, allocations: 1.186 MB / 351 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003965/0.1606, allocations: 198.5 kB / 351.2 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003369/0.1609, allocations: 221.3 kB / 351.4 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009692/0.1706, allocations: 8.569 MB / 359.9 MB, free: 1.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.527e-05/0.1707, allocations: 34.56 kB / 360 MB, free: 1.887 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 4.027e-06/0.1707, allocations: 0 / 360 MB, free: 1.887 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001723/0.1725, allocations: 0.6698 MB / 360.6 MB, free: 1.188 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.87e-05/0.1725, allocations: 81.11 kB / 360.7 MB, free: 1.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001045/0.1736, allocations: 0.7948 MB / 361.5 MB, free: 284 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.168e-05/0.1736, allocations: 33.7 kB / 361.6 MB, free: 244 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004012/0.1741, allocations: 440.7 kB / 362 MB, free: 15.8 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.33e-05/0.1741, allocations: 74.86 kB / 362.1 MB, free: 15.73 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001075/0.1742, allocations: 53.94 kB / 362.1 MB, free: 15.67 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.1744, allocations: 321.9 kB / 362.4 MB, free: 15.35 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001446/0.1745, allocations: 68.2 kB / 362.5 MB, free: 15.28 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002238/0.1748, allocations: 146.3 kB / 362.6 MB, free: 15.11 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003381/0.1751, allocations: 228.8 kB / 362.9 MB, free: 14.86 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/0.1751, allocations: 7.938 kB / 362.9 MB, free: 14.85 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006493/0.1758, allocations: 408.9 kB / 363.3 MB, free: 14.44 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.679e-05/0.1758, allocations: 8 kB / 363.3 MB, free: 14.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.257e-05/0.1759, allocations: 12 kB / 363.3 MB, free: 14.42 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004036/0.1763, allocations: 141.1 kB / 363.4 MB, free: 14.28 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001732/0.1765, allocations: 39.91 kB / 363.5 MB, free: 14.24 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007921/0.1773, allocations: 0.7114 MB / 364.2 MB, free: 13.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002714/0.1776, allocations: 27.69 kB / 364.2 MB, free: 13.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.859e-05/0.1776, allocations: 12 kB / 364.2 MB, free: 13.46 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.0002809/0.1779, allocations: 193.9 kB / 364.4 MB, free: 13.27 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.178, allocations: 106.7 kB / 364.5 MB, free: 13.16 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008358/0.1789, allocations: 407.7 kB / 364.9 MB, free: 12.74 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.1789, allocations: 8 kB / 364.9 MB, free: 12.73 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.1789, allocations: 0 / 364.9 MB, free: 12.73 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.1789, allocations: 0 / 364.9 MB, free: 12.73 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007368/0.1797, allocations: 0.5112 MB / 365.4 MB, free: 12.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.38e-05/0.1797, allocations: 15.94 kB / 365.4 MB, free: 12.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000114/0.1798, allocations: 15.98 kB / 365.4 MB, free: 12.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002959/0.1801, allocations: 136.8 kB / 365.6 MB, free: 12.01 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.085e-05/0.1801, allocations: 4 kB / 365.6 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006581/0.1808, allocations: 0.7007 MB / 366.3 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1808, allocations: 0 / 366.3 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006024/0.1814, allocations: 467.7 kB / 366.7 MB, free: 10.8 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000195/0.1816, allocations: 175.8 kB / 366.9 MB, free: 10.61 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.2e-05/0.1817, allocations: 0 / 366.9 MB, free: 10.61 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001973/0.1819, allocations: 15.88 kB / 366.9 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.659e-05/0.182, allocations: 15.92 kB / 366.9 MB, free: 10.58 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.135e-05/0.182, allocations: 12 kB / 367 MB, free: 10.57 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006522/0.1827, allocations: 0.5422 MB / 367.5 MB, free: 10.02 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.1827, allocations: 4 kB / 367.5 MB, free: 10.01 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006209/0.1833, allocations: 191.8 kB / 367.7 MB, free: 9.824 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.001405/0.1847, allocations: 1.177 MB / 368.9 MB, free: 8.617 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007571/0.1855, allocations: 279.2 kB / 369.1 MB, free: 8.332 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1855, allocations: 4 kB / 369.1 MB, free: 8.328 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003145/0.1858, allocations: 191.1 kB / 369.3 MB, free: 8.129 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006491/0.1865, allocations: 140.8 kB / 369.5 MB, free: 7.992 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008762/0.1953, allocations: 5.841 MB / 375.3 MB, free: 1.855 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006289/0.1959, allocations: 0.9411 MB / 376.3 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000383/0.1963, allocations: 110.7 kB / 376.4 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00037/0.1967, allocations: 319.3 kB / 376.7 MB, free: 472 kB / 318.1 MB Notification: Performance of SimCode: time 8.62e-07/0.1967, allocations: 0 / 376.7 MB, free: 472 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.222/0.4187, allocations: 17.95 MB / 394.6 MB, free: 48.19 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001741/0.4189, allocations: 229.8 kB / 394.9 MB, free: 47.93 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.816/3.235, allocations: 0 / 394.9 MB, free: 47.93 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches