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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001593/0.001593, allocations: 122.8 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001942/0.001942, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 55.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2729/0.2742, allocations: 50.56 MB / 408.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006725/0.281, allocations: 5.292 MB / 414 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01078/0.2918, allocations: 9.105 MB / 423.1 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007659/0.2926, allocations: 43.62 kB / 423.2 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001061/0.2937, allocations: 393.5 kB / 423.6 MB, free: 2.621 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002483/0.2962, allocations: 0.8379 MB / 424.4 MB, free: 1.777 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001673/0.2979, allocations: 0.587 MB / 425 MB, free: 1.188 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00259/0.3005, allocations: 1.724 MB / 426.7 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003051/0.3008, allocations: 167 kB / 426.9 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004836/0.3013, allocations: 302.6 kB / 427.2 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000396/0.3017, allocations: 329.9 kB / 427.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.964e-05/0.3018, allocations: 32 kB / 427.5 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001629/0.3034, allocations: 0.6633 MB / 428.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001078/0.3036, allocations: 107.3 kB / 428.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003772/0.304, allocations: 409.5 kB / 428.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001633/0.3056, allocations: 1.203 MB / 429.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.3056, allocations: 0 / 429.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3056, allocations: 7.938 kB / 429.9 MB, free: 12.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.319e-05/0.3056, allocations: 0 / 429.9 MB, free: 12.24 MB / 350.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.001813/0.3075, allocations: 1.275 MB / 431.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.3075, allocations: 8.031 kB / 431.2 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.354e-05/0.3076, allocations: 62.72 kB / 431.3 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002861/0.3079, allocations: 123.6 kB / 431.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001104/0.309, allocations: 0.8557 MB / 432.2 MB, free: 9.801 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.055e-05/0.309, allocations: 20.56 kB / 432.3 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.677e-05/0.3091, allocations: 28 kB / 432.3 MB, free: 9.754 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005015/0.3096, allocations: 307.7 kB / 432.6 MB, free: 9.441 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.3096, allocations: 3.938 kB / 432.6 MB, free: 9.438 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.739e-05/0.3097, allocations: 4 kB / 432.6 MB, free: 9.434 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/0.3097, allocations: 12 kB / 432.6 MB, free: 9.422 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004089/0.3101, allocations: 230.1 kB / 432.8 MB, free: 9.195 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001827/0.3119, allocations: 1.183 MB / 434 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003982/0.3123, allocations: 202.6 kB / 434.2 MB, free: 7.734 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003339/0.3127, allocations: 229.2 kB / 434.4 MB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008942/0.3216, allocations: 8.874 MB / 443.3 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.033e-05/0.3217, allocations: 38.48 kB / 443.3 MB, free: 13.12 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.265e-06/0.3217, allocations: 0 / 443.3 MB, free: 13.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001644/0.3234, allocations: 0.6573 MB / 444 MB, free: 12.43 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.106e-05/0.3235, allocations: 81.11 kB / 444.1 MB, free: 12.34 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000957/0.3244, allocations: 0.7986 MB / 444.9 MB, free: 11.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.614e-05/0.3245, allocations: 29.7 kB / 444.9 MB, free: 11.48 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003546/0.3248, allocations: 440.7 kB / 445.3 MB, free: 11.05 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.46e-05/0.3249, allocations: 86.73 kB / 445.4 MB, free: 10.96 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.426e-05/0.325, allocations: 57.88 kB / 445.5 MB, free: 10.9 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.3251, allocations: 321.9 kB / 445.8 MB, free: 10.58 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001385/0.3253, allocations: 68.2 kB / 445.9 MB, free: 10.51 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001889/0.3255, allocations: 145.9 kB / 446 MB, free: 10.34 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000336/0.3258, allocations: 232.4 kB / 446.2 MB, free: 10.08 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.3258, allocations: 0 / 446.2 MB, free: 10.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006685/0.3265, allocations: 418.2 kB / 446.6 MB, free: 9.664 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.3265, allocations: 4 kB / 446.6 MB, free: 9.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.31e-05/0.3266, allocations: 20 kB / 446.7 MB, free: 9.641 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003771/0.3269, allocations: 132.8 kB / 446.8 MB, free: 9.508 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001767/0.3271, allocations: 36.14 kB / 446.8 MB, free: 9.473 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000656/0.3278, allocations: 0.7122 MB / 447.5 MB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002631/0.3281, allocations: 27.72 kB / 447.6 MB, free: 8.707 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.49e-05/0.3281, allocations: 16 kB / 447.6 MB, free: 8.691 MB / 366.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.0002592/0.3284, allocations: 205.3 kB / 447.8 MB, free: 8.484 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001216/0.3285, allocations: 102.9 kB / 447.9 MB, free: 8.383 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007607/0.3293, allocations: 407.3 kB / 448.3 MB, free: 7.977 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.3293, allocations: 0 / 448.3 MB, free: 7.977 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.3293, allocations: 0 / 448.3 MB, free: 7.977 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.3293, allocations: 4 kB / 448.3 MB, free: 7.973 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006062/0.3299, allocations: 0.5112 MB / 448.8 MB, free: 7.414 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-05/0.33, allocations: 12 kB / 448.8 MB, free: 7.402 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001204/0.3301, allocations: 19.92 kB / 448.8 MB, free: 7.383 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002808/0.3304, allocations: 143.5 kB / 449 MB, free: 7.242 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.007e-05/0.3304, allocations: 12 kB / 449 MB, free: 7.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006065/0.331, allocations: 0.6967 MB / 449.7 MB, free: 6.508 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.331, allocations: 0 / 449.7 MB, free: 6.508 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005948/0.3316, allocations: 468.4 kB / 450.1 MB, free: 6.031 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001947/0.3318, allocations: 163.9 kB / 450.3 MB, free: 5.852 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.183e-05/0.3319, allocations: 4 kB / 450.3 MB, free: 5.848 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001995/0.3321, allocations: 4 kB / 450.3 MB, free: 5.844 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.072e-05/0.3322, allocations: 19.97 kB / 450.3 MB, free: 5.824 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.21e-05/0.3322, allocations: 12 kB / 450.3 MB, free: 5.812 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006134/0.3328, allocations: 0.5383 MB / 450.9 MB, free: 5.266 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3329, allocations: 0 / 450.9 MB, free: 5.266 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006196/0.3335, allocations: 203.7 kB / 451.1 MB, free: 5.066 MB / 366.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.00127/0.3348, allocations: 1.177 MB / 452.2 MB, free: 3.855 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006021/0.3354, allocations: 284.3 kB / 452.5 MB, free: 3.566 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3354, allocations: 0 / 452.5 MB, free: 3.566 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002867/0.3357, allocations: 178.1 kB / 452.7 MB, free: 3.383 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007455/0.3364, allocations: 176 kB / 452.9 MB, free: 3.207 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007666/0.3441, allocations: 5.306 MB / 458.2 MB, free: 13.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005931/0.3448, allocations: 0.9374 MB / 459.1 MB, free: 12.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003583/0.3451, allocations: 114.7 kB / 459.2 MB, free: 12.63 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004035/0.3455, allocations: 311.3 kB / 459.5 MB, free: 12.33 MB / 382.1 MB Notification: Performance of SimCode: time 1.312e-06/0.3456, allocations: 0 / 459.5 MB, free: 12.33 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0484/0.394, allocations: 18.7 MB / 478.2 MB, free: 9.781 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.32/13.72, allocations: 11.94 kB / 478.2 MB, free: 9.77 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > 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