Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009975/0.0009974, allocations: 171.9 kB / 16.72 MB, free: 4.961 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.234/1.234, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007804/0.0007805, allocations: 89.34 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003102/0.0003102, allocations: 8 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2187/0.219, allocations: 47.57 MB / 375.1 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.003838/0.2229, allocations: 4.466 MB / 379.5 MB, free: 41.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007039/0.23, allocations: 7.889 MB / 387.4 MB, free: 35.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000516/0.2305, allocations: 19.38 kB / 387.5 MB, free: 35.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006899/0.2312, allocations: 300.3 kB / 387.7 MB, free: 35.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001814/0.233, allocations: 0.6447 MB / 388.4 MB, free: 34.76 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001098/0.2341, allocations: 434.5 kB / 388.8 MB, free: 34.43 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002048/0.2362, allocations: 1.545 MB / 390.4 MB, free: 33.4 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002229/0.2364, allocations: 147.5 kB / 390.5 MB, free: 33.24 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002563/0.2367, allocations: 262.7 kB / 390.8 MB, free: 32.98 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002368/0.2369, allocations: 282.3 kB / 391 MB, free: 32.71 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.443e-05/0.237, allocations: 16 kB / 391 MB, free: 32.69 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009833/0.238, allocations: 0.5229 MB / 391.6 MB, free: 32.17 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.834e-05/0.2381, allocations: 79.45 kB / 391.7 MB, free: 32.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000234/0.2383, allocations: 399.5 kB / 392 MB, free: 31.69 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005811/0.2389, allocations: 0.8531 MB / 392.9 MB, free: 30.84 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.2389, allocations: 0 / 392.9 MB, free: 30.84 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2389, allocations: 0 / 392.9 MB, free: 30.84 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.095e-06/0.2389, allocations: 0 / 392.9 MB, free: 30.84 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.001242/0.2402, allocations: 1.143 MB / 394 MB, free: 29.64 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/0.2402, allocations: 8.031 kB / 394 MB, free: 29.63 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.437e-05/0.2403, allocations: 115.6 kB / 394.2 MB, free: 29.52 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008624/0.2412, allocations: 0.8554 MB / 395 MB, free: 28.61 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.661e-05/0.2412, allocations: 20.56 kB / 395 MB, free: 28.59 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.025e-05/0.2413, allocations: 24 kB / 395.1 MB, free: 28.57 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004018/0.2417, allocations: 315.6 kB / 395.4 MB, free: 28.25 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.2417, allocations: 0 / 395.4 MB, free: 28.25 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.637e-05/0.2417, allocations: 12 kB / 395.4 MB, free: 28.23 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.377e-06/0.2417, allocations: 4 kB / 395.4 MB, free: 28.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003473/0.2421, allocations: 238.1 kB / 395.6 MB, free: 28 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001354/0.2434, allocations: 1.194 MB / 396.8 MB, free: 26.73 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003054/0.2438, allocations: 205 kB / 397 MB, free: 26.52 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002593/0.244, allocations: 229.2 kB / 397.2 MB, free: 26.29 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005702/0.2497, allocations: 8.577 MB / 405.8 MB, free: 16.32 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.833e-05/0.2498, allocations: 34.56 kB / 405.8 MB, free: 16.28 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 2.655e-06/0.2498, allocations: 0 / 405.8 MB, free: 16.28 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.001349/0.2512, allocations: 0.6816 MB / 406.5 MB, free: 15.57 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.958e-05/0.2512, allocations: 77.11 kB / 406.6 MB, free: 15.47 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000688/0.2519, allocations: 0.787 MB / 407.4 MB, free: 14.67 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.777e-05/0.2519, allocations: 29.7 kB / 407.4 MB, free: 14.63 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000213/0.2521, allocations: 444.6 kB / 407.8 MB, free: 14.2 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.673e-05/0.2522, allocations: 70.92 kB / 407.9 MB, free: 14.12 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.334e-05/0.2522, allocations: 8 kB / 407.9 MB, free: 14.12 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.575e-05/0.2523, allocations: 325.9 kB / 408.2 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001202/0.2524, allocations: 68.2 kB / 408.3 MB, free: 13.73 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001388/0.2525, allocations: 153.8 kB / 408.5 MB, free: 13.54 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002696/0.2528, allocations: 228.9 kB / 408.7 MB, free: 13.29 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2528, allocations: 4 kB / 408.7 MB, free: 13.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004664/0.2533, allocations: 408.9 kB / 409.1 MB, free: 12.88 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.2533, allocations: 6.188 kB / 409.1 MB, free: 12.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.398e-05/0.2533, allocations: 16 kB / 409.1 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003094/0.2537, allocations: 137.1 kB / 409.2 MB, free: 12.72 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001466/0.2538, allocations: 39.84 kB / 409.3 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004465/0.2543, allocations: 0.7122 MB / 410 MB, free: 11.94 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002128/0.2545, allocations: 27.67 kB / 410 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.387e-05/0.2545, allocations: 16.06 kB / 410 MB, free: 11.9 MB / 298.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.0001897/0.2547, allocations: 198 kB / 410.2 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.713e-05/0.2548, allocations: 98.88 kB / 410.3 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007061/0.2555, allocations: 423.1 kB / 410.7 MB, free: 11.17 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.2555, allocations: 4 kB / 410.7 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.2556, allocations: 0 / 410.7 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-06/0.2556, allocations: 0 / 410.7 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004194/0.256, allocations: 0.4996 MB / 411.2 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.649e-05/0.256, allocations: 15.98 kB / 411.3 MB, free: 10.6 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001031/0.2561, allocations: 19.92 kB / 411.3 MB, free: 10.58 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002178/0.2563, allocations: 139 kB / 411.4 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.784e-05/0.2564, allocations: 11.98 kB / 411.4 MB, free: 10.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003989/0.2568, allocations: 0.7064 MB / 412.1 MB, free: 9.703 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2568, allocations: 4.062 kB / 412.1 MB, free: 9.699 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004255/0.2572, allocations: 451.8 kB / 412.6 MB, free: 9.238 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000132/0.2574, allocations: 167.8 kB / 412.7 MB, free: 9.055 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.395e-05/0.2574, allocations: 7.984 kB / 412.7 MB, free: 9.047 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001898/0.2576, allocations: 15.94 kB / 412.8 MB, free: 9.031 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.321e-05/0.2577, allocations: 15.92 kB / 412.8 MB, free: 9.016 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.832e-05/0.2577, allocations: 8 kB / 412.8 MB, free: 9.008 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004884/0.2582, allocations: 0.5344 MB / 413.3 MB, free: 8.465 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2582, allocations: 3.938 kB / 413.3 MB, free: 8.461 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005028/0.2587, allocations: 199.7 kB / 413.5 MB, free: 8.266 MB / 298.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.0004335/0.2592, allocations: 295.4 kB / 413.8 MB, free: 7.969 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005232/0.2597, allocations: 283 kB / 414.1 MB, free: 7.68 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.2597, allocations: 0 / 414.1 MB, free: 7.68 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002307/0.26, allocations: 179.3 kB / 414.3 MB, free: 7.492 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005436/0.2605, allocations: 133.9 kB / 414.4 MB, free: 7.363 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001488/0.262, allocations: 1.42 MB / 415.8 MB, free: 5.91 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000258/0.2623, allocations: 0.949 MB / 416.8 MB, free: 4.934 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.763e-05/0.2624, allocations: 47.44 kB / 416.8 MB, free: 4.887 MB / 298.7 MB Notification: Performance of SimCode: time 3.21e-07/0.2624, allocations: 0 / 416.8 MB, free: 4.887 MB / 298.7 MB Notification: Performance of Templates: time 0.01571/0.2781, allocations: 14.25 MB / 431.1 MB, free: 6.629 MB / 314.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat","/var/lib/jenkins/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_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches