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.001186/0.001186, allocations: 106.8 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001393/0.001393, allocations: 205.8 kB / 18.26 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.337/1.337, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001115/0.001115, allocations: 59.12 kB / 306.6 MB, free: 0.8555 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09502/0.09615, allocations: 50.53 MB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005523/0.1017, allocations: 5.308 MB / 362.4 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.225/0.3268, allocations: 9.056 MB / 371.5 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009608/0.3278, allocations: 18.66 kB / 371.5 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001173/0.329, allocations: 340.5 kB / 371.8 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002801/0.3318, allocations: 0.72 MB / 372.5 MB, free: 9.008 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001903/0.3337, allocations: 0.5164 MB / 373 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002913/0.3366, allocations: 1.719 MB / 374.8 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002897/0.3369, allocations: 173.4 kB / 374.9 MB, free: 8.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004829/0.3374, allocations: 305.9 kB / 375.2 MB, free: 8.801 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003311/0.3378, allocations: 319.8 kB / 375.5 MB, free: 8.684 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.912e-05/0.3378, allocations: 30.25 kB / 375.6 MB, free: 8.684 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001591/0.3394, allocations: 0.6711 MB / 376.2 MB, free: 8.652 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.861e-05/0.3395, allocations: 104.1 kB / 376.3 MB, free: 8.613 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003142/0.3399, allocations: 404.7 kB / 376.7 MB, free: 8.461 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001443/0.3413, allocations: 1.207 MB / 377.9 MB, free: 8.238 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.3413, allocations: 0 / 377.9 MB, free: 8.238 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3413, allocations: 0 / 377.9 MB, free: 8.238 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.456e-05/0.3414, allocations: 0 / 377.9 MB, free: 8.238 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.001765/0.3431, allocations: 1.277 MB / 379.2 MB, free: 7.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.3432, allocations: 9.641 kB / 379.2 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.48e-05/0.3433, allocations: 62.62 kB / 379.3 MB, free: 7.371 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002749/0.3436, allocations: 128.2 kB / 379.4 MB, free: 7.312 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001133/0.3447, allocations: 0.8497 MB / 380.3 MB, free: 6.945 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.341e-05/0.3447, allocations: 23.66 kB / 380.3 MB, free: 6.941 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.936e-05/0.3448, allocations: 22.78 kB / 380.3 MB, free: 6.941 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005251/0.3453, allocations: 308.2 kB / 380.6 MB, free: 6.887 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/0.3454, allocations: 0 / 380.6 MB, free: 6.887 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.124e-05/0.3454, allocations: 12.84 kB / 380.6 MB, free: 6.887 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.517e-05/0.3454, allocations: 6.984 kB / 380.6 MB, free: 6.887 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004432/0.3459, allocations: 233.5 kB / 380.9 MB, free: 6.875 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001787/0.3477, allocations: 1.182 MB / 382 MB, free: 6.152 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003843/0.3481, allocations: 202 kB / 382.2 MB, free: 6.051 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003173/0.3484, allocations: 225.1 kB / 382.5 MB, free: 5.945 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008068/0.3565, allocations: 8.88 MB / 391.3 MB, free: 13.79 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.942e-05/0.3565, allocations: 40.38 kB / 391.4 MB, free: 13.74 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.034e-06/0.3565, allocations: 0 / 391.4 MB, free: 13.74 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.001673/0.3582, allocations: 0.6586 MB / 392 MB, free: 13.43 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.157e-05/0.3583, allocations: 84.2 kB / 392.1 MB, free: 13.33 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001143/0.3594, allocations: 0.7997 MB / 392.9 MB, free: 13 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.16e-05/0.3595, allocations: 30.92 kB / 392.9 MB, free: 12.96 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003751/0.3599, allocations: 438.2 kB / 393.4 MB, free: 12.61 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.129e-05/0.3599, allocations: 76.67 kB / 393.5 MB, free: 12.55 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.36, allocations: 60.97 kB / 393.5 MB, free: 12.52 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.3602, allocations: 320.2 kB / 393.8 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001522/0.3603, allocations: 68.66 kB / 393.9 MB, free: 12.18 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002092/0.3605, allocations: 140.6 kB / 394 MB, free: 12.07 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003658/0.3609, allocations: 239.2 kB / 394.3 MB, free: 11.9 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.129e-06/0.3609, allocations: 0 / 394.3 MB, free: 11.9 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000715/0.3616, allocations: 398.7 kB / 394.6 MB, free: 11.72 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.3617, allocations: 5.969 kB / 394.7 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.486e-05/0.3617, allocations: 20.77 kB / 394.7 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000396/0.3621, allocations: 146.8 kB / 394.8 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001695/0.3623, allocations: 33.5 kB / 394.9 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006905/0.363, allocations: 0.7113 MB / 395.6 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003594/0.3634, allocations: 32.64 kB / 395.6 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.023e-05/0.3634, allocations: 12.89 kB / 395.6 MB, free: 11.05 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.0002704/0.3637, allocations: 195.5 kB / 395.8 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001455/0.3638, allocations: 107.9 kB / 395.9 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008814/0.3647, allocations: 414.5 kB / 396.3 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.3648, allocations: 6.219 kB / 396.3 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.3648, allocations: 1.031 kB / 396.3 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.3648, allocations: 3.047 kB / 396.3 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008109/0.3656, allocations: 0.5071 MB / 396.8 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.321e-05/0.3656, allocations: 11.62 kB / 396.8 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001247/0.3658, allocations: 23.17 kB / 396.9 MB, free: 10.31 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003056/0.3661, allocations: 136.4 kB / 397 MB, free: 10.27 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.291e-05/0.3661, allocations: 5.812 kB / 397 MB, free: 10.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006099/0.3667, allocations: 0.7097 MB / 397.7 MB, free: 9.652 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.3667, allocations: 1.375 kB / 397.7 MB, free: 9.652 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006269/0.3674, allocations: 458.6 kB / 398.2 MB, free: 9.355 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00028/0.3677, allocations: 171.3 kB / 398.3 MB, free: 9.195 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001312/0.3678, allocations: 10.81 kB / 398.3 MB, free: 9.188 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002435/0.3681, allocations: 6.75 kB / 398.3 MB, free: 9.184 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.314e-05/0.3681, allocations: 12.23 kB / 398.4 MB, free: 9.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.247e-05/0.3682, allocations: 16.23 kB / 398.4 MB, free: 9.172 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007908/0.369, allocations: 0.5401 MB / 398.9 MB, free: 8.852 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.369, allocations: 1.125 kB / 398.9 MB, free: 8.852 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008362/0.3698, allocations: 197.8 kB / 399.1 MB, free: 8.816 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.001903/0.3717, allocations: 1.182 MB / 400.3 MB, free: 7.945 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007036/0.3724, allocations: 282.5 kB / 400.6 MB, free: 7.789 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.3725, allocations: 0 / 400.6 MB, free: 7.789 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003434/0.3728, allocations: 189.6 kB / 400.7 MB, free: 7.668 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008809/0.3737, allocations: 166.9 kB / 400.9 MB, free: 7.574 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01014/0.3839, allocations: 5.843 MB / 406.8 MB, free: 3.484 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000496/0.3844, allocations: 0.9374 MB / 407.7 MB, free: 2.52 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004451/0.3849, allocations: 110.7 kB / 407.8 MB, free: 2.406 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003639/0.3852, allocations: 323.3 kB / 408.1 MB, free: 2.09 MB / 318.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3852, allocations: 0 / 408.1 MB, free: 2.09 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04396/0.4292, allocations: 18 MB / 426.1 MB, free: 284 kB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002034/0.4295, allocations: 234.1 kB / 426.3 MB, free: 24 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.405/2.835, allocations: 0 / 426.3 MB, free: 24 kB / 334.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