Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: 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_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001202/0.001207, allocations: 110.1 kB / 17.29 MB, free: 6.059 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.001243/0.001243, allocations: 197.3 kB / 18.21 MB, free: 5.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 222.9 MB / 241.9 MB, free: 15.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009879/0.000988, allocations: 45.77 kB / 300.8 MB, free: 6.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08084/0.08185, allocations: 49.44 MB / 350.2 MB, free: 4.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005768/0.08765, allocations: 5.296 MB / 355.5 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01012/0.0978, allocations: 9.023 MB / 364.5 MB, free: 6.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007561/0.09859, allocations: 19.88 kB / 364.6 MB, free: 6.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001167/0.09977, allocations: 342.2 kB / 364.9 MB, free: 5.984 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002536/0.1024, allocations: 0.7184 MB / 365.6 MB, free: 5.262 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00156/0.104, allocations: 0.5059 MB / 366.1 MB, free: 4.754 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00235/0.1063, allocations: 1.697 MB / 367.8 MB, free: 3.051 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002778/0.1066, allocations: 159.1 kB / 368 MB, free: 2.879 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004039/0.107, allocations: 306.5 kB / 368.3 MB, free: 2.578 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003236/0.1074, allocations: 318 kB / 368.6 MB, free: 2.266 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.031e-05/0.1074, allocations: 32 kB / 368.6 MB, free: 2.234 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001448/0.1089, allocations: 0.6554 MB / 369.3 MB, free: 1.578 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.454e-05/0.109, allocations: 99.38 kB / 369.4 MB, free: 1.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003158/0.1093, allocations: 401.5 kB / 369.8 MB, free: 1.086 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008563/0.1102, allocations: 0.8805 MB / 370.6 MB, free: 208 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.1102, allocations: 7.938 kB / 370.7 MB, free: 200 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.1102, allocations: 0 / 370.7 MB, free: 200 kB / 302.1 MB Notification: Performance of Transformations before backend: time 9.187e-06/0.1102, allocations: 0 / 370.7 MB, free: 200 kB / 302.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.1588/0.269, allocations: 1.268 MB / 371.9 MB, free: 27.12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/0.2691, allocations: 13.77 kB / 371.9 MB, free: 27.12 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001627/0.2693, allocations: 113 kB / 372 MB, free: 27.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001291/0.2706, allocations: 0.8515 MB / 372.9 MB, free: 26.58 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.831e-05/0.2706, allocations: 19.73 kB / 372.9 MB, free: 26.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.776e-05/0.2707, allocations: 27.66 kB / 372.9 MB, free: 26.56 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005798/0.2712, allocations: 310.6 kB / 373.2 MB, free: 26.42 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.2713, allocations: 0 / 373.2 MB, free: 26.42 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.159e-05/0.2713, allocations: 16.59 kB / 373.3 MB, free: 26.41 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.618e-05/0.2713, allocations: 7.359 kB / 373.3 MB, free: 26.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004418/0.2718, allocations: 234.7 kB / 373.5 MB, free: 26.33 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001879/0.2737, allocations: 1.192 MB / 374.7 MB, free: 25.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004122/0.2741, allocations: 200.9 kB / 374.9 MB, free: 25.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003238/0.2744, allocations: 219.5 kB / 375.1 MB, free: 25.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007302/0.2817, allocations: 8.566 MB / 383.7 MB, free: 17.64 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.225e-05/0.2818, allocations: 33.8 kB / 383.7 MB, free: 17.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 2.214e-06/0.2818, allocations: 3.531 kB / 383.7 MB, free: 17.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001691/0.2835, allocations: 0.6659 MB / 384.4 MB, free: 17.31 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.857e-05/0.2836, allocations: 81.16 kB / 384.4 MB, free: 17.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001024/0.2846, allocations: 0.7936 MB / 385.2 MB, free: 16.89 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.853e-05/0.2847, allocations: 30.77 kB / 385.3 MB, free: 16.85 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003103/0.285, allocations: 450.9 kB / 385.7 MB, free: 16.49 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.948e-05/0.285, allocations: 70.88 kB / 385.8 MB, free: 16.44 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.2852, allocations: 59.31 kB / 385.8 MB, free: 16.4 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.948e-05/0.2852, allocations: 315.7 kB / 386.1 MB, free: 16.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001467/0.2854, allocations: 64.66 kB / 386.2 MB, free: 16.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001889/0.2856, allocations: 147.3 kB / 386.4 MB, free: 15.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003323/0.2859, allocations: 232.7 kB / 386.6 MB, free: 15.79 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.2859, allocations: 0 / 386.6 MB, free: 15.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007106/0.2866, allocations: 410.3 kB / 387 MB, free: 15.6 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.316e-05/0.2867, allocations: 9.781 kB / 387 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.883e-05/0.2867, allocations: 15.47 kB / 387 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000397/0.2871, allocations: 137.9 kB / 387.1 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001735/0.2873, allocations: 41.02 kB / 387.2 MB, free: 15.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005565/0.2879, allocations: 0.7069 MB / 387.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003619/0.2882, allocations: 32.67 kB / 387.9 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.556e-05/0.2883, allocations: 20.3 kB / 387.9 MB, free: 14.93 MB / 302.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.0002506/0.2886, allocations: 194.1 kB / 388.1 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001179/0.2887, allocations: 110.9 kB / 388.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000796/0.2895, allocations: 406.1 kB / 388.6 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.2895, allocations: 2.922 kB / 388.6 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.2895, allocations: 4 kB / 388.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.2895, allocations: 5.984 kB / 388.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000645/0.2902, allocations: 0.5049 MB / 389.2 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.359e-05/0.2902, allocations: 11.58 kB / 389.2 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001182/0.2903, allocations: 17.55 kB / 389.2 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000279/0.2906, allocations: 135.1 kB / 389.3 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.335e-05/0.2907, allocations: 10.64 kB / 389.3 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004565/0.2911, allocations: 0.7109 MB / 390 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/0.2911, allocations: 1.219 kB / 390 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005067/0.2916, allocations: 454.8 kB / 390.5 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000162/0.2918, allocations: 178.3 kB / 390.7 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.487e-05/0.2919, allocations: 4.938 kB / 390.7 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002068/0.2921, allocations: 3.312 kB / 390.7 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.103e-05/0.2922, allocations: 17.28 kB / 390.7 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.147e-05/0.2922, allocations: 9.062 kB / 390.7 MB, free: 13.13 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006779/0.2929, allocations: 0.5452 MB / 391.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2929, allocations: 0 / 391.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000647/0.2935, allocations: 193 kB / 391.4 MB, free: 12.86 MB / 302.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.0004895/0.294, allocations: 306.7 kB / 391.7 MB, free: 12.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005893/0.2946, allocations: 291.7 kB / 392 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.2947, allocations: 0 / 392 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002796/0.2949, allocations: 187 kB / 392.2 MB, free: 12.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007444/0.2957, allocations: 165.5 kB / 392.3 MB, free: 12.4 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001833/0.2975, allocations: 1.489 MB / 393.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003292/0.2979, allocations: 0.9388 MB / 394.8 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.597e-05/0.298, allocations: 55.44 kB / 394.8 MB, free: 10.61 MB / 302.1 MB Notification: Performance of SimCode: time 4.9e-07/0.298, allocations: 0 / 394.8 MB, free: 10.61 MB / 302.1 MB Notification: Performance of Templates: time 0.01637/0.3144, allocations: 14.35 MB / 409.2 MB, free: 15 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches