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.001457/0.001457, allocations: 195.4 kB / 18.06 MB, free: 3.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.267/1.267, allocations: 226.5 MB / 245.4 MB, free: 8.254 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007543/0.0007543, allocations: 105.6 kB / 297.4 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002099/0.0002099, allocations: 11.98 kB / 357.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1827/0.1829, allocations: 51.28 MB / 408.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09507/0.278, allocations: 92.31 MB / 0.4892 GB, free: 15.29 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002162/0.2782, allocations: 75.95 kB / 0.4893 GB, free: 15.22 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2022/0.4805, allocations: 37.23 MB / 0.5256 GB, free: 86.39 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4805, allocations: 7.938 kB / 0.5257 GB, free: 86.39 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.428e-05/0.4805, allocations: 12.25 kB / 0.5257 GB, free: 86.39 MB / 378.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.001375/0.4819, allocations: 1.214 MB / 0.5269 GB, free: 85.19 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.031e-05/0.4819, allocations: 11.97 kB / 0.5269 GB, free: 85.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002089/0.4821, allocations: 127.6 kB / 0.527 GB, free: 85.05 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007907/0.4829, allocations: 0.7977 MB / 0.5278 GB, free: 84.2 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.612e-05/0.483, allocations: 16.94 kB / 0.5278 GB, free: 84.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.221e-05/0.483, allocations: 28.73 kB / 0.5278 GB, free: 84.16 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004021/0.4834, allocations: 315.5 kB / 0.5281 GB, free: 83.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.4835, allocations: 0 / 0.5281 GB, free: 83.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.668e-05/0.4835, allocations: 8 kB / 0.5281 GB, free: 83.83 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.4835, allocations: 8 kB / 0.5281 GB, free: 83.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003373/0.4838, allocations: 242.1 kB / 0.5284 GB, free: 83.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001274/0.4851, allocations: 1.2 MB / 0.5295 GB, free: 82.31 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002792/0.4854, allocations: 198.7 kB / 0.5297 GB, free: 82.11 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002483/0.4857, allocations: 233.2 kB / 0.5299 GB, free: 81.88 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00699/0.4927, allocations: 10.99 MB / 0.5407 GB, free: 68.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.538e-05/0.4927, allocations: 34.56 kB / 0.5407 GB, free: 68.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 2.134e-06/0.4927, allocations: 0 / 0.5407 GB, free: 68.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=23): time 0.00124/0.494, allocations: 0.652 MB / 0.5413 GB, free: 68.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.513e-05/0.494, allocations: 81.11 kB / 0.5414 GB, free: 68.16 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007272/0.4947, allocations: 0.8027 MB / 0.5422 GB, free: 67.34 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.775e-05/0.4948, allocations: 33.64 kB / 0.5422 GB, free: 67.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002135/0.495, allocations: 436.7 kB / 0.5426 GB, free: 66.87 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.789e-05/0.495, allocations: 78.7 kB / 0.5427 GB, free: 66.79 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.404e-05/0.495, allocations: 4 kB / 0.5427 GB, free: 66.79 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.676e-05/0.4951, allocations: 318 kB / 0.543 GB, free: 66.47 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001179/0.4952, allocations: 68.2 kB / 0.5431 GB, free: 66.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001368/0.4954, allocations: 153.9 kB / 0.5432 GB, free: 66.22 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002604/0.4956, allocations: 244.7 kB / 0.5435 GB, free: 65.95 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.4956, allocations: 0 / 0.5435 GB, free: 65.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004592/0.4961, allocations: 401.1 kB / 0.5439 GB, free: 65.55 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/0.4961, allocations: 8.281 kB / 0.5439 GB, free: 65.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.249e-05/0.4962, allocations: 16 kB / 0.5439 GB, free: 65.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002903/0.4964, allocations: 143.3 kB / 0.544 GB, free: 65.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001396/0.4966, allocations: 31.98 kB / 0.544 GB, free: 65.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004235/0.497, allocations: 0.7106 MB / 0.5447 GB, free: 64.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002431/0.4973, allocations: 27.78 kB / 0.5448 GB, free: 64.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.981e-05/0.4973, allocations: 16 kB / 0.5448 GB, free: 64.57 MB / 378.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.0001875/0.4975, allocations: 201.7 kB / 0.545 GB, free: 64.37 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.939e-05/0.4976, allocations: 106.8 kB / 0.5451 GB, free: 64.26 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006973/0.4983, allocations: 435.2 kB / 0.5455 GB, free: 63.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.4983, allocations: 0 / 0.5455 GB, free: 63.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.4983, allocations: 3.938 kB / 0.5455 GB, free: 63.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.4983, allocations: 0 / 0.5455 GB, free: 63.82 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004451/0.4988, allocations: 0.5112 MB / 0.546 GB, free: 63.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-05/0.4988, allocations: 8 kB / 0.546 GB, free: 63.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001014/0.4989, allocations: 27.97 kB / 0.546 GB, free: 63.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002197/0.4991, allocations: 140.7 kB / 0.5462 GB, free: 63.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.707e-05/0.4992, allocations: 4 kB / 0.5462 GB, free: 63.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003803/0.4996, allocations: 0.7111 MB / 0.5469 GB, free: 62.35 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.4996, allocations: 0 / 0.5469 GB, free: 62.35 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000441/0.5, allocations: 471.6 kB / 0.5473 GB, free: 61.87 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001288/0.5002, allocations: 171.8 kB / 0.5475 GB, free: 61.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.847e-05/0.5002, allocations: 0 / 0.5475 GB, free: 61.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002087/0.5004, allocations: 15.98 kB / 0.5475 GB, free: 61.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.337e-05/0.5005, allocations: 15.92 kB / 0.5475 GB, free: 61.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.779e-05/0.5005, allocations: 12 kB / 0.5475 GB, free: 61.64 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004934/0.501, allocations: 0.5422 MB / 0.548 GB, free: 61.09 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.501, allocations: 0 / 0.548 GB, free: 61.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000526/0.5016, allocations: 211.7 kB / 0.5483 GB, free: 60.88 MB / 378.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.0003958/0.502, allocations: 330.6 kB / 0.5486 GB, free: 60.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004527/0.5024, allocations: 280.1 kB / 0.5488 GB, free: 60.26 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.5024, allocations: 0 / 0.5488 GB, free: 60.26 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002308/0.5027, allocations: 191.1 kB / 0.549 GB, free: 60.06 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006709/0.5034, allocations: 149.2 kB / 0.5492 GB, free: 59.93 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001384/0.5047, allocations: 1.444 MB / 0.5506 GB, free: 58.45 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002263/0.505, allocations: 0.9374 MB / 0.5515 GB, free: 57.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.222e-05/0.5051, allocations: 51.44 kB / 0.5515 GB, free: 57.43 MB / 378.7 MB Notification: Performance of SimCode: time 1.9e-07/0.5051, allocations: 0 / 0.5515 GB, free: 57.43 MB / 378.7 MB Notification: Performance of Templates: time 0.01202/0.5171, allocations: 14.13 MB / 0.5653 GB, free: 43.33 MB / 378.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/jenkins1/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