Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Electrical.Spice3.Examples.CascodeCircuit,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|J2.D.v|RC.v|J1.D.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit") translateModel(Modelica.Electrical.Spice3.Examples.CascodeCircuit,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|J2.D.v|RC.v|J1.D.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001627/0.001627, allocations: 200.6 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.263/1.263, allocations: 226.6 MB / 244.7 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008119/0.000812, allocations: 96.53 kB / 296.8 MB, free: 6.918 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000207/0.000207, allocations: 8 kB / 356.7 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1788/0.179, allocations: 51.3 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.003089/0.1821, allocations: 4.599 MB / 412.6 MB, free: 23.1 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006431/0.1886, allocations: 8.321 MB / 421 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004948/0.1891, allocations: 15.88 kB / 421 MB, free: 14.76 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007114/0.1899, allocations: 302.4 kB / 421.3 MB, free: 14.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001643/0.1915, allocations: 0.6639 MB / 421.9 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001088/0.1926, allocations: 454 kB / 422.4 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001839/0.1945, allocations: 1.607 MB / 424 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000226/0.1947, allocations: 149.2 kB / 424.1 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002812/0.195, allocations: 274.7 kB / 424.4 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002393/0.1952, allocations: 294.2 kB / 424.7 MB, free: 11.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.326e-05/0.1953, allocations: 16 kB / 424.7 MB, free: 11 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001073/0.1964, allocations: 0.6046 MB / 425.3 MB, free: 10.39 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.807e-05/0.1964, allocations: 83.45 kB / 425.4 MB, free: 10.31 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002431/0.1967, allocations: 391.5 kB / 425.8 MB, free: 9.922 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006224/0.1973, allocations: 0.8686 MB / 426.6 MB, free: 9.051 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.1973, allocations: 0 / 426.6 MB, free: 9.051 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1973, allocations: 0 / 426.6 MB, free: 9.051 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.488e-06/0.1974, allocations: 0 / 426.6 MB, free: 9.051 MB / 298.7 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.0012/0.1986, allocations: 1.143 MB / 427.8 MB, free: 7.855 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.1986, allocations: 16.03 kB / 427.8 MB, free: 7.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002216/0.1988, allocations: 135.5 kB / 427.9 MB, free: 7.707 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008729/0.1997, allocations: 0.852 MB / 428.8 MB, free: 6.801 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.593e-05/0.1997, allocations: 16.56 kB / 428.8 MB, free: 6.785 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.152e-05/0.1998, allocations: 24 kB / 428.8 MB, free: 6.762 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004125/0.2002, allocations: 311.7 kB / 429.1 MB, free: 6.445 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.2002, allocations: 0 / 429.1 MB, free: 6.445 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.736e-05/0.2003, allocations: 12 kB / 429.1 MB, free: 6.434 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.2003, allocations: 12 kB / 429.2 MB, free: 6.422 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003427/0.2006, allocations: 230.1 kB / 429.4 MB, free: 6.199 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001326/0.202, allocations: 1.19 MB / 430.6 MB, free: 4.938 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002898/0.2023, allocations: 198.6 kB / 430.8 MB, free: 4.734 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000257/0.2025, allocations: 231.2 kB / 431 MB, free: 4.504 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006872/0.2094, allocations: 8.901 MB / 439.9 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.297e-05/0.2095, allocations: 34.56 kB / 439.9 MB, free: 10.09 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 3.376e-06/0.2095, allocations: 3.984 kB / 439.9 MB, free: 10.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.001472/0.211, allocations: 0.6705 MB / 440.6 MB, free: 9.391 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.062e-05/0.211, allocations: 81.11 kB / 440.7 MB, free: 9.293 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008198/0.2118, allocations: 0.7831 MB / 441.5 MB, free: 8.492 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.105e-05/0.2119, allocations: 29.7 kB / 441.5 MB, free: 8.457 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000305/0.2122, allocations: 448.6 kB / 441.9 MB, free: 8.016 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.434e-05/0.2122, allocations: 78.91 kB / 442 MB, free: 7.938 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.466e-05/0.2123, allocations: 4 kB / 442 MB, free: 7.934 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.9e-05/0.2124, allocations: 325.9 kB / 442.3 MB, free: 7.609 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001318/0.2125, allocations: 64.2 kB / 442.4 MB, free: 7.547 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001723/0.2127, allocations: 146.4 kB / 442.5 MB, free: 7.371 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003189/0.213, allocations: 240.1 kB / 442.8 MB, free: 7.105 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.213, allocations: 4 kB / 442.8 MB, free: 7.102 MB / 314.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005729/0.2136, allocations: 409 kB / 443.2 MB, free: 6.691 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.526e-05/0.2136, allocations: 4 kB / 443.2 MB, free: 6.688 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.726e-05/0.2137, allocations: 16 kB / 443.2 MB, free: 6.672 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003346/0.214, allocations: 147.9 kB / 443.3 MB, free: 6.527 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001607/0.2142, allocations: 35.92 kB / 443.4 MB, free: 6.492 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005726/0.2147, allocations: 0.7066 MB / 444.1 MB, free: 5.762 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002288/0.215, allocations: 31.72 kB / 444.1 MB, free: 5.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.33e-05/0.215, allocations: 19.94 kB / 444.1 MB, free: 5.711 MB / 314.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 11} Notification: Performance of prepare postOptimizeDAE: time 0.0002267/0.2153, allocations: 193.9 kB / 444.3 MB, free: 5.512 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.2154, allocations: 110.7 kB / 444.4 MB, free: 5.402 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007703/0.2161, allocations: 407.2 kB / 444.8 MB, free: 4.992 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.2162, allocations: 4 kB / 444.8 MB, free: 4.988 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.2162, allocations: 0 / 444.8 MB, free: 4.988 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.2162, allocations: 0 / 444.8 MB, free: 4.988 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005429/0.2167, allocations: 0.5073 MB / 445.3 MB, free: 4.434 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.279e-05/0.2168, allocations: 15.94 kB / 445.3 MB, free: 4.418 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001128/0.2169, allocations: 19.98 kB / 445.4 MB, free: 4.398 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002568/0.2171, allocations: 132.8 kB / 445.5 MB, free: 4.266 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.331e-05/0.2172, allocations: 15.94 kB / 445.5 MB, free: 4.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005319/0.2177, allocations: 0.7005 MB / 446.2 MB, free: 3.523 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.2177, allocations: 0 / 446.2 MB, free: 3.523 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005241/0.2183, allocations: 463.6 kB / 446.7 MB, free: 3.051 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001714/0.2184, allocations: 171.9 kB / 446.8 MB, free: 2.863 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.229e-05/0.2185, allocations: 4 kB / 446.8 MB, free: 2.859 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001947/0.2187, allocations: 4 kB / 446.8 MB, free: 2.855 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.948e-05/0.2188, allocations: 19.98 kB / 446.9 MB, free: 2.836 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.19e-05/0.2188, allocations: 11.98 kB / 446.9 MB, free: 2.824 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005684/0.2194, allocations: 0.5344 MB / 447.4 MB, free: 2.281 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2194, allocations: 3.938 kB / 447.4 MB, free: 2.277 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000524/0.2199, allocations: 199.7 kB / 447.6 MB, free: 2.082 MB / 314.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.000484/0.2204, allocations: 301.4 kB / 447.9 MB, free: 1.777 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005354/0.221, allocations: 279.3 kB / 448.2 MB, free: 1.492 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.518e-06/0.221, allocations: 0 / 448.2 MB, free: 1.492 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002644/0.2212, allocations: 182.4 kB / 448.4 MB, free: 1.305 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007247/0.222, allocations: 161.2 kB / 448.5 MB, free: 1.152 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001719/0.2237, allocations: 1.421 MB / 449.9 MB, free: 15.69 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004028/0.2241, allocations: 0.9416 MB / 450.9 MB, free: 14.72 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.55e-05/0.2242, allocations: 55.42 kB / 450.9 MB, free: 14.66 MB / 330.7 MB Notification: Performance of SimCode: time 3.81e-07/0.2242, allocations: 0 / 450.9 MB, free: 14.66 MB / 330.7 MB Notification: Performance of Templates: time 0.01664/0.2409, allocations: 14.29 MB / 465.2 MB, free: 416 kB / 330.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches