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.0009551/0.0009551, allocations: 95 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001102/0.001102, allocations: 204.1 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.293/1.293, allocations: 227.7 MB / 247.5 MB, free: 11.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002637/0.000264, allocations: 8 kB / 308.4 MB, free: 0.8438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09831/0.0986, allocations: 51.52 MB / 359.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.004948/0.1036, allocations: 4.908 MB / 364.8 MB, free: 8.395 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1808/0.2844, allocations: 9.119 MB / 373.9 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007417/0.2852, allocations: 20.12 kB / 374 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001157/0.2864, allocations: 339.1 kB / 374.3 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002689/0.2891, allocations: 0.6956 MB / 375 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001869/0.291, allocations: 482.3 kB / 375.5 MB, free: 8.898 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002806/0.2938, allocations: 1.673 MB / 377.1 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002588/0.2941, allocations: 151.7 kB / 377.3 MB, free: 8.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000422/0.2945, allocations: 285.5 kB / 377.6 MB, free: 8.578 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003274/0.2948, allocations: 314.9 kB / 377.9 MB, free: 8.469 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.022e-05/0.2949, allocations: 15.56 kB / 377.9 MB, free: 8.469 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00154/0.2965, allocations: 0.653 MB / 378.5 MB, free: 8.445 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.195e-05/0.2965, allocations: 82.09 kB / 378.6 MB, free: 8.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002877/0.2968, allocations: 422.7 kB / 379 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008996/0.2977, allocations: 0.8643 MB / 379.9 MB, free: 8.113 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.2977, allocations: 0 / 379.9 MB, free: 8.113 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2978, allocations: 0.9062 kB / 379.9 MB, free: 8.113 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.157e-05/0.2978, allocations: 0 / 379.9 MB, free: 8.113 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.001517/0.2993, allocations: 1.151 MB / 381 MB, free: 7.328 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.2993, allocations: 10.86 kB / 381 MB, free: 7.328 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002767/0.2996, allocations: 129.2 kB / 381.2 MB, free: 7.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001064/0.3007, allocations: 0.8471 MB / 382 MB, free: 6.906 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.01e-05/0.3007, allocations: 21.42 kB / 382 MB, free: 6.902 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.751e-05/0.3008, allocations: 27.59 kB / 382.1 MB, free: 6.898 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004938/0.3013, allocations: 309.3 kB / 382.4 MB, free: 6.844 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.3013, allocations: 4 kB / 382.4 MB, free: 6.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.778e-05/0.3013, allocations: 10.91 kB / 382.4 MB, free: 6.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.3014, allocations: 14.38 kB / 382.4 MB, free: 6.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003915/0.3018, allocations: 233.5 kB / 382.6 MB, free: 6.836 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001612/0.3034, allocations: 1.187 MB / 383.8 MB, free: 6.395 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003285/0.3037, allocations: 200.2 kB / 384 MB, free: 6.367 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003/0.304, allocations: 230.5 kB / 384.2 MB, free: 6.348 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007192/0.3112, allocations: 8.899 MB / 393.1 MB, free: 14.24 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/0.3113, allocations: 34.88 kB / 393.2 MB, free: 14.2 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.124e-06/0.3113, allocations: 0 / 393.2 MB, free: 14.2 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.001588/0.3129, allocations: 0.6669 MB / 393.8 MB, free: 13.89 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.648e-05/0.3129, allocations: 89.92 kB / 393.9 MB, free: 13.79 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001012/0.314, allocations: 0.7992 MB / 394.7 MB, free: 13.46 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.661e-05/0.314, allocations: 30.8 kB / 394.7 MB, free: 13.43 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003385/0.3143, allocations: 444.7 kB / 395.2 MB, free: 13.07 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.871e-05/0.3144, allocations: 78.89 kB / 395.3 MB, free: 13.01 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.324e-05/0.3145, allocations: 24.05 kB / 395.3 MB, free: 12.99 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.3146, allocations: 318.8 kB / 395.6 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001503/0.3147, allocations: 66.44 kB / 395.7 MB, free: 12.66 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000188/0.315, allocations: 152.7 kB / 395.8 MB, free: 12.53 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004115/0.3154, allocations: 239.8 kB / 396 MB, free: 12.36 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.3154, allocations: 8.844 kB / 396.1 MB, free: 12.35 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006365/0.316, allocations: 408.9 kB / 396.5 MB, free: 12.14 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.3161, allocations: 6.031 kB / 396.5 MB, free: 12.14 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.812e-05/0.3161, allocations: 17.59 kB / 396.5 MB, free: 12.14 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003441/0.3164, allocations: 138.2 kB / 396.6 MB, free: 12.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000169/0.3166, allocations: 38.16 kB / 396.6 MB, free: 12.08 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006089/0.3172, allocations: 0.7088 MB / 397.4 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002835/0.3175, allocations: 29.88 kB / 397.4 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.528e-05/0.3176, allocations: 15.61 kB / 397.4 MB, free: 11.44 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.0002606/0.3178, allocations: 198.4 kB / 397.6 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001206/0.318, allocations: 102.3 kB / 397.7 MB, free: 11.22 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008473/0.3188, allocations: 427 kB / 398.1 MB, free: 10.97 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.709e-06/0.3189, allocations: 6.938 kB / 398.1 MB, free: 10.97 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.3189, allocations: 0 / 398.1 MB, free: 10.97 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.3189, allocations: 9.109 kB / 398.1 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006771/0.3196, allocations: 0.4983 MB / 398.6 MB, free: 10.56 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.007e-05/0.3196, allocations: 12.38 kB / 398.6 MB, free: 10.56 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000122/0.3197, allocations: 24.28 kB / 398.7 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002677/0.32, allocations: 134 kB / 398.8 MB, free: 10.5 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.058e-05/0.32, allocations: 12.12 kB / 398.8 MB, free: 10.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005759/0.3206, allocations: 0.7041 MB / 399.5 MB, free: 9.883 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3206, allocations: 0 / 399.5 MB, free: 9.883 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005766/0.3212, allocations: 462.2 kB / 400 MB, free: 9.586 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002094/0.3214, allocations: 171 kB / 400.1 MB, free: 9.426 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.769e-05/0.3215, allocations: 5.469 kB / 400.1 MB, free: 9.422 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000229/0.3218, allocations: 12.42 kB / 400.1 MB, free: 9.414 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.921e-05/0.3218, allocations: 11.86 kB / 400.2 MB, free: 9.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.294e-05/0.3218, allocations: 11.91 kB / 400.2 MB, free: 9.406 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006648/0.3225, allocations: 0.5387 MB / 400.7 MB, free: 9.09 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3225, allocations: 5.344 kB / 400.7 MB, free: 9.086 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006275/0.3232, allocations: 202.6 kB / 400.9 MB, free: 9.047 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.0005429/0.3237, allocations: 295.7 kB / 401.2 MB, free: 8.91 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005512/0.3243, allocations: 276.9 kB / 401.5 MB, free: 8.762 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3243, allocations: 3.938 kB / 401.5 MB, free: 8.758 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000295/0.3246, allocations: 186.6 kB / 401.7 MB, free: 8.641 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000819/0.3254, allocations: 152.8 kB / 401.8 MB, free: 8.562 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002026/0.3274, allocations: 1.534 MB / 403.3 MB, free: 7.523 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004411/0.3279, allocations: 0.934 MB / 404.3 MB, free: 6.719 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.3e-05/0.328, allocations: 50.44 kB / 404.3 MB, free: 6.711 MB / 318.1 MB Notification: Performance of SimCode: time 3.41e-07/0.328, allocations: 4 kB / 404.3 MB, free: 6.707 MB / 318.1 MB Notification: Performance of Templates: time 0.01875/0.3467, allocations: 14.3 MB / 418.6 MB, free: 10.03 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