Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Electrical.Spice3.Examples.CascodeCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001179/0.001179, allocations: 110.5 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001276/0.001276, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.308/1.308, allocations: 227.4 MB / 246.9 MB, free: 8.871 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 62.77 kB / 306.9 MB, free: 0.7852 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08441/0.08567, allocations: 50.53 MB / 357.4 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.00598/0.09168, allocations: 5.305 MB / 362.7 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1793/0.271, allocations: 9.273 MB / 372 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005858/0.2717, allocations: 20.12 kB / 372 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001066/0.2728, allocations: 342.8 kB / 372.4 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002469/0.2753, allocations: 0.6954 MB / 373.1 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001672/0.277, allocations: 477.4 kB / 373.5 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00289/0.2799, allocations: 1.674 MB / 375.2 MB, free: 8.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003338/0.2802, allocations: 154.1 kB / 375.4 MB, free: 8.719 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006429/0.2809, allocations: 301.1 kB / 375.6 MB, free: 8.676 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003612/0.2813, allocations: 313.8 kB / 376 MB, free: 8.555 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.582e-05/0.2813, allocations: 18.97 kB / 376 MB, free: 8.555 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001683/0.283, allocations: 0.6555 MB / 376.6 MB, free: 8.531 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.648e-05/0.2831, allocations: 92.83 kB / 376.7 MB, free: 8.492 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003368/0.2835, allocations: 393.3 kB / 377.1 MB, free: 8.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009847/0.2844, allocations: 0.8793 MB / 378 MB, free: 8.234 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.2845, allocations: 0 / 378 MB, free: 8.234 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.32e-07/0.2845, allocations: 8.781 kB / 378 MB, free: 8.227 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.38e-05/0.2845, allocations: 0 / 378 MB, free: 8.227 MB / 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.001825/0.2863, allocations: 1.282 MB / 379.3 MB, free: 7.398 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.2864, allocations: 9.438 kB / 379.3 MB, free: 7.398 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002949/0.2867, allocations: 123.4 kB / 379.4 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001151/0.2878, allocations: 0.8443 MB / 380.2 MB, free: 6.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.096e-05/0.2879, allocations: 25.22 kB / 380.3 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.396e-05/0.2879, allocations: 29.83 kB / 380.3 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005364/0.2885, allocations: 310.3 kB / 380.6 MB, free: 6.91 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.2885, allocations: 0 / 380.6 MB, free: 6.91 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.145e-05/0.2885, allocations: 9.359 kB / 380.6 MB, free: 6.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.464e-05/0.2886, allocations: 10.7 kB / 380.6 MB, free: 6.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004286/0.289, allocations: 232.8 kB / 380.8 MB, free: 6.906 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001836/0.2908, allocations: 1.189 MB / 382 MB, free: 6.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003547/0.2912, allocations: 203 kB / 382.2 MB, free: 6.082 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003315/0.2915, allocations: 220.1 kB / 382.5 MB, free: 5.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008749/0.3003, allocations: 8.877 MB / 391.3 MB, free: 13.82 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.01e-05/0.3004, allocations: 31.62 kB / 391.4 MB, free: 13.78 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.254e-06/0.3004, allocations: 1.125 kB / 391.4 MB, free: 13.78 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.001632/0.302, allocations: 0.6623 MB / 392 MB, free: 13.46 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.51e-05/0.3021, allocations: 79.48 kB / 392.1 MB, free: 13.37 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001046/0.3032, allocations: 0.7943 MB / 392.9 MB, free: 13.04 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.179e-05/0.3032, allocations: 29.7 kB / 392.9 MB, free: 13.01 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003739/0.3036, allocations: 446.3 kB / 393.4 MB, free: 12.65 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.424e-05/0.3037, allocations: 80.94 kB / 393.4 MB, free: 12.59 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.3038, allocations: 56.64 kB / 393.5 MB, free: 12.56 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.3039, allocations: 322.1 kB / 393.8 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001605/0.3041, allocations: 65.81 kB / 393.9 MB, free: 12.23 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002132/0.3043, allocations: 150.9 kB / 394 MB, free: 12.1 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003527/0.3046, allocations: 228 kB / 394.2 MB, free: 11.94 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.571e-05/0.3047, allocations: 9.125 kB / 394.3 MB, free: 11.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007119/0.3054, allocations: 401.6 kB / 394.6 MB, free: 11.75 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.212e-05/0.3054, allocations: 6.188 kB / 394.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.884e-05/0.3055, allocations: 17.28 kB / 394.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000398/0.3059, allocations: 140.5 kB / 394.8 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001856/0.3061, allocations: 41.45 kB / 394.8 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007186/0.3068, allocations: 0.7049 MB / 395.6 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004123/0.3072, allocations: 33 kB / 395.6 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.467e-05/0.3073, allocations: 15.97 kB / 395.6 MB, free: 11.09 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.0003435/0.3076, allocations: 201 kB / 395.8 MB, free: 10.92 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001551/0.3078, allocations: 103.7 kB / 395.9 MB, free: 10.87 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009101/0.3087, allocations: 414.2 kB / 396.3 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.218e-06/0.3087, allocations: 6.125 kB / 396.3 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.3087, allocations: 2.5 kB / 396.3 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.3088, allocations: 7.188 kB / 396.3 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008417/0.3096, allocations: 0.5036 MB / 396.8 MB, free: 10.35 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.068e-05/0.3096, allocations: 12.41 kB / 396.8 MB, free: 10.35 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001341/0.3098, allocations: 18.14 kB / 396.8 MB, free: 10.35 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000351/0.3101, allocations: 140.5 kB / 397 MB, free: 10.29 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.548e-05/0.3102, allocations: 13 kB / 397 MB, free: 10.29 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006809/0.3109, allocations: 0.699 MB / 397.7 MB, free: 9.676 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.3109, allocations: 0 / 397.7 MB, free: 9.676 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006865/0.3116, allocations: 461.3 kB / 398.1 MB, free: 9.379 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002571/0.3118, allocations: 174.8 kB / 398.3 MB, free: 9.215 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.611e-05/0.3119, allocations: 1.562 kB / 398.3 MB, free: 9.215 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002101/0.3122, allocations: 6.812 kB / 398.3 MB, free: 9.211 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.55e-05/0.3122, allocations: 11.8 kB / 398.3 MB, free: 9.207 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.6e-05/0.3123, allocations: 12.03 kB / 398.4 MB, free: 9.203 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000736/0.313, allocations: 0.542 MB / 398.9 MB, free: 8.883 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.313, allocations: 0 / 398.9 MB, free: 8.883 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007407/0.3138, allocations: 194.2 kB / 399.1 MB, free: 8.852 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.000613/0.3144, allocations: 315.7 kB / 399.4 MB, free: 8.699 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000617/0.315, allocations: 267.8 kB / 399.7 MB, free: 8.559 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.155e-06/0.315, allocations: 1.375 kB / 399.7 MB, free: 8.559 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003052/0.3153, allocations: 182.1 kB / 399.8 MB, free: 8.441 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008249/0.3162, allocations: 158.8 kB / 400 MB, free: 8.359 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002134/0.3183, allocations: 1.492 MB / 401.5 MB, free: 7.371 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004705/0.3188, allocations: 0.9426 MB / 402.4 MB, free: 6.559 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.93e-05/0.3189, allocations: 55.89 kB / 402.5 MB, free: 6.547 MB / 318.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3189, allocations: 0 / 402.5 MB, free: 6.547 MB / 318.1 MB Notification: Performance of Templates: time 0.01933/0.3383, allocations: 14.37 MB / 416.8 MB, free: 10.18 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches