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.001301/0.001301, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00136/0.00136, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00181/0.00181, allocations: 63.89 kB / 358.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2734/0.2752, allocations: 50.55 MB / 408.8 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006404/0.2817, allocations: 5.292 MB / 414.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01093/0.2926, allocations: 9.114 MB / 423.2 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007067/0.2934, allocations: 39.69 kB / 423.3 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001058/0.2944, allocations: 393.4 kB / 423.6 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002757/0.2973, allocations: 0.8224 MB / 424.5 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001869/0.2991, allocations: 0.5987 MB / 425.1 MB, free: 1.105 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002931/0.3021, allocations: 1.72 MB / 426.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003263/0.3024, allocations: 163 kB / 426.9 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004971/0.3029, allocations: 302.6 kB / 427.2 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004203/0.3034, allocations: 333.9 kB / 427.6 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.314e-05/0.3034, allocations: 32 kB / 427.6 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001603/0.3051, allocations: 0.6594 MB / 428.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001179/0.3052, allocations: 103.3 kB / 428.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004028/0.3056, allocations: 409.5 kB / 428.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001828/0.3074, allocations: 1.221 MB / 430 MB, free: 12.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.3075, allocations: 0 / 430 MB, free: 12.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3075, allocations: 0 / 430 MB, free: 12.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.759e-05/0.3075, allocations: 0 / 430 MB, free: 12.16 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.002164/0.3097, allocations: 1.313 MB / 431.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/0.3097, allocations: 8.031 kB / 431.3 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.769e-05/0.3098, allocations: 66.72 kB / 431.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003189/0.3101, allocations: 136.2 kB / 431.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001206/0.3114, allocations: 0.8606 MB / 432.4 MB, free: 9.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.537e-05/0.3114, allocations: 20.56 kB / 432.4 MB, free: 9.641 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.632e-05/0.3114, allocations: 20 kB / 432.4 MB, free: 9.621 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005317/0.312, allocations: 315.6 kB / 432.7 MB, free: 9.301 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.312, allocations: 0 / 432.7 MB, free: 9.301 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.87e-05/0.312, allocations: 8 kB / 432.7 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.382e-05/0.3121, allocations: 12 kB / 432.7 MB, free: 9.281 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004323/0.3125, allocations: 234.1 kB / 433 MB, free: 9.051 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001807/0.3143, allocations: 1.187 MB / 434.1 MB, free: 7.793 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003694/0.3147, allocations: 190.7 kB / 434.3 MB, free: 7.598 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000344/0.3151, allocations: 237.2 kB / 434.6 MB, free: 7.359 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009386/0.3244, allocations: 8.878 MB / 443.4 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.569e-05/0.3245, allocations: 34.56 kB / 443.5 MB, free: 12.97 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.825e-06/0.3245, allocations: 4 kB / 443.5 MB, free: 12.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001657/0.3262, allocations: 0.6579 MB / 444.1 MB, free: 12.29 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.816e-05/0.3263, allocations: 89.05 kB / 444.2 MB, free: 12.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009412/0.3272, allocations: 0.7948 MB / 445 MB, free: 11.37 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.809e-05/0.3273, allocations: 29.7 kB / 445 MB, free: 11.33 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003795/0.3276, allocations: 445 kB / 445.5 MB, free: 10.89 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.151e-05/0.3277, allocations: 87.25 kB / 445.6 MB, free: 10.8 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.469e-05/0.3278, allocations: 53.94 kB / 445.6 MB, free: 10.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.328, allocations: 321.9 kB / 445.9 MB, free: 10.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001494/0.3281, allocations: 72.2 kB / 446 MB, free: 10.36 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002057/0.3283, allocations: 141.9 kB / 446.1 MB, free: 10.18 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003642/0.3287, allocations: 224.5 kB / 446.4 MB, free: 9.934 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.3287, allocations: 4 kB / 446.4 MB, free: 9.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006608/0.3294, allocations: 424.4 kB / 446.8 MB, free: 9.508 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.3294, allocations: 4 kB / 446.8 MB, free: 9.504 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.321e-05/0.3295, allocations: 19.98 kB / 446.8 MB, free: 9.484 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000382/0.3299, allocations: 144 kB / 446.9 MB, free: 9.344 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001728/0.33, allocations: 27.98 kB / 447 MB, free: 9.316 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000741/0.3308, allocations: 0.7162 MB / 447.7 MB, free: 8.574 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002399/0.331, allocations: 31.84 kB / 447.7 MB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.681e-05/0.3311, allocations: 12 kB / 447.7 MB, free: 8.531 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.0002672/0.3314, allocations: 201.3 kB / 447.9 MB, free: 8.328 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001206/0.3315, allocations: 107.3 kB / 448 MB, free: 8.223 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000805/0.3323, allocations: 403.3 kB / 448.4 MB, free: 7.82 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.3323, allocations: 4 kB / 448.4 MB, free: 7.816 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.003e-05/0.3323, allocations: 4 kB / 448.4 MB, free: 7.812 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.3324, allocations: 11.86 kB / 448.4 MB, free: 7.801 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006229/0.333, allocations: 0.5074 MB / 449 MB, free: 7.246 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.183e-05/0.333, allocations: 12 kB / 449 MB, free: 7.234 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001212/0.3331, allocations: 15.98 kB / 449 MB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003365/0.3335, allocations: 144.6 kB / 449.1 MB, free: 7.074 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.359e-05/0.3335, allocations: 8 kB / 449.1 MB, free: 7.066 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007168/0.3342, allocations: 0.7018 MB / 449.8 MB, free: 6.344 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.3343, allocations: 0 / 449.8 MB, free: 6.344 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006492/0.3349, allocations: 464.9 kB / 450.3 MB, free: 5.871 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002046/0.3351, allocations: 172.4 kB / 450.5 MB, free: 5.684 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.093e-05/0.3352, allocations: 8 kB / 450.5 MB, free: 5.676 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001985/0.3354, allocations: 7.984 kB / 450.5 MB, free: 5.668 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.249e-05/0.3355, allocations: 16.05 kB / 450.5 MB, free: 5.652 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.225e-05/0.3355, allocations: 8 kB / 450.5 MB, free: 5.645 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006753/0.3362, allocations: 0.5461 MB / 451 MB, free: 5.09 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3362, allocations: 0 / 451 MB, free: 5.09 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005849/0.3368, allocations: 195.7 kB / 451.2 MB, free: 4.898 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.001338/0.3381, allocations: 1.193 MB / 452.4 MB, free: 3.672 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005886/0.3387, allocations: 283.7 kB / 452.7 MB, free: 3.383 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.3388, allocations: 0 / 452.7 MB, free: 3.383 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003083/0.3391, allocations: 183.8 kB / 452.9 MB, free: 3.191 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007451/0.3398, allocations: 164.1 kB / 453 MB, free: 3.027 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00728/0.3471, allocations: 5.338 MB / 458.4 MB, free: 13.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000574/0.3477, allocations: 0.9374 MB / 459.3 MB, free: 12.54 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003102/0.348, allocations: 110.7 kB / 459.4 MB, free: 12.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003506/0.3484, allocations: 311.3 kB / 459.7 MB, free: 12.12 MB / 382.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3484, allocations: 0 / 459.7 MB, free: 12.12 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05092/0.3993, allocations: 18.38 MB / 478.1 MB, free: 9.902 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.42/13.82, allocations: 14.5 kB / 478.1 MB, free: 9.891 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.1.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