Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007647/0.0007647, allocations: 92.2 kB / 17.3 MB, free: 6.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007904/0.0007905, allocations: 172.5 kB / 18.2 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.227/1.227, allocations: 205.4 MB / 224.4 MB, free: 13.08 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004187/0.0004187, allocations: 16.47 kB / 281.5 MB, free: 3.32 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07663/0.07706, allocations: 47.58 MB / 329.1 MB, free: 3.672 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.00406/0.08116, allocations: 4.75 MB / 333.8 MB, free: 14.9 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008666/0.08984, allocations: 8.683 MB / 342.5 MB, free: 6.184 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003376/0.09021, allocations: 19.88 kB / 342.5 MB, free: 6.164 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007091/0.09093, allocations: 326.2 kB / 342.8 MB, free: 5.844 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001627/0.09256, allocations: 0.6871 MB / 343.5 MB, free: 5.152 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001016/0.09359, allocations: 465.9 kB / 344 MB, free: 4.695 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001871/0.09547, allocations: 1.607 MB / 345.6 MB, free: 3.082 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002356/0.09572, allocations: 155.6 kB / 345.7 MB, free: 2.918 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002556/0.09599, allocations: 262.6 kB / 346 MB, free: 2.66 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002864/0.09628, allocations: 302 kB / 346.3 MB, free: 2.363 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.952e-05/0.09633, allocations: 16 kB / 346.3 MB, free: 2.348 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009334/0.09727, allocations: 0.5503 MB / 346.8 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.771e-05/0.09735, allocations: 87.33 kB / 346.9 MB, free: 1.711 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002939/0.09765, allocations: 415.2 kB / 347.3 MB, free: 1.297 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001045/0.0987, allocations: 1.156 MB / 348.5 MB, free: 140 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.09871, allocations: 0 / 348.5 MB, free: 140 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.09872, allocations: 4 kB / 348.5 MB, free: 136 kB / 286.1 MB Notification: Performance of Transformations before backend: time 7.524e-06/0.09874, allocations: 3.938 kB / 348.5 MB, free: 132 kB / 286.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.001446/0.1002, allocations: 1.132 MB / 349.6 MB, free: 14.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.1002, allocations: 8.031 kB / 349.6 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.7e-05/0.1003, allocations: 62.72 kB / 349.7 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001103/0.1004, allocations: 119.5 kB / 349.8 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001019/0.1014, allocations: 0.859 MB / 350.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.8e-05/0.1015, allocations: 16.56 kB / 350.7 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.103e-05/0.1015, allocations: 27.91 kB / 350.7 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004759/0.102, allocations: 315.6 kB / 351 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.147e-06/0.102, allocations: 0 / 351 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.805e-05/0.1021, allocations: 8 kB / 351 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.849e-06/0.1021, allocations: 8 kB / 351 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003876/0.1025, allocations: 242.1 kB / 351.3 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001526/0.104, allocations: 1.187 MB / 352.5 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003313/0.1044, allocations: 198.6 kB / 352.7 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003028/0.1047, allocations: 233.2 kB / 352.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007479/0.1122, allocations: 8.577 MB / 361.5 MB, free: 1.551 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.608e-05/0.1122, allocations: 42.55 kB / 361.5 MB, free: 1.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.693e-06/0.1122, allocations: 0 / 361.5 MB, free: 1.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.00152/0.1137, allocations: 0.666 MB / 362.2 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.841e-05/0.1138, allocations: 93 kB / 362.3 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008347/0.1146, allocations: 0.8025 MB / 363.1 MB, free: 15.88 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.263e-05/0.1147, allocations: 29.7 kB / 363.1 MB, free: 15.84 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003124/0.115, allocations: 436.7 kB / 363.5 MB, free: 15.41 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.813e-05/0.1151, allocations: 82.84 kB / 363.6 MB, free: 15.33 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.077e-05/0.1151, allocations: 25.72 kB / 363.6 MB, free: 15.3 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.591e-05/0.1152, allocations: 314 kB / 363.9 MB, free: 14.98 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001371/0.1154, allocations: 68.2 kB / 364 MB, free: 14.92 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001809/0.1155, allocations: 150.3 kB / 364.1 MB, free: 14.74 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003615/0.1159, allocations: 236.9 kB / 364.4 MB, free: 14.48 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.1159, allocations: 0 / 364.4 MB, free: 14.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000575/0.1165, allocations: 412.9 kB / 364.8 MB, free: 14.06 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.1165, allocations: 4 kB / 364.8 MB, free: 14.06 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.731e-05/0.1166, allocations: 16 kB / 364.8 MB, free: 14.04 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003484/0.1169, allocations: 141 kB / 364.9 MB, free: 13.9 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001571/0.1171, allocations: 39.91 kB / 365 MB, free: 13.86 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005427/0.1176, allocations: 0.7084 MB / 365.7 MB, free: 13.13 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002238/0.1179, allocations: 27.69 kB / 365.7 MB, free: 13.1 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.611e-05/0.1179, allocations: 20 kB / 365.7 MB, free: 13.08 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.0002007/0.1181, allocations: 189.8 kB / 365.9 MB, free: 12.89 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001014/0.1182, allocations: 106.7 kB / 366 MB, free: 12.78 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00075/0.119, allocations: 403.4 kB / 366.4 MB, free: 12.37 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.271e-06/0.119, allocations: 4 kB / 366.4 MB, free: 12.37 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.119, allocations: 0 / 366.4 MB, free: 12.37 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.119, allocations: 0 / 366.4 MB, free: 12.37 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005216/0.1196, allocations: 0.515 MB / 366.9 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-05/0.1196, allocations: 15.94 kB / 366.9 MB, free: 11.79 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001221/0.1197, allocations: 27.98 kB / 367 MB, free: 11.76 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002536/0.12, allocations: 139.7 kB / 367.1 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.932e-05/0.12, allocations: 8 kB / 367.1 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005175/0.1205, allocations: 0.7011 MB / 367.8 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1205, allocations: 0 / 367.8 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005297/0.1211, allocations: 463.7 kB / 368.3 MB, free: 10.42 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001684/0.1213, allocations: 179.8 kB / 368.4 MB, free: 10.22 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.14e-05/0.1213, allocations: 7.984 kB / 368.5 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001996/0.1215, allocations: 4 kB / 368.5 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.93e-05/0.1216, allocations: 19.92 kB / 368.5 MB, free: 10.19 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.942e-05/0.1216, allocations: 8 kB / 368.5 MB, free: 10.18 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000545/0.1222, allocations: 0.5423 MB / 369 MB, free: 9.633 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1222, allocations: 0 / 369 MB, free: 9.633 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004932/0.1227, allocations: 195.8 kB / 369.2 MB, free: 9.441 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.0011/0.1238, allocations: 1.177 MB / 370.4 MB, free: 8.234 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005115/0.1243, allocations: 287.4 kB / 370.7 MB, free: 7.941 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1243, allocations: 0 / 370.7 MB, free: 7.941 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002702/0.1246, allocations: 179.2 kB / 370.9 MB, free: 7.754 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005575/0.1252, allocations: 132.8 kB / 371 MB, free: 7.625 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007394/0.1326, allocations: 5.884 MB / 376.9 MB, free: 1.441 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004046/0.133, allocations: 0.9371 MB / 377.8 MB, free: 488 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003337/0.1333, allocations: 114.7 kB / 377.9 MB, free: 368 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000284/0.1336, allocations: 311.3 kB / 378.2 MB, free: 56 kB / 318.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1336, allocations: 0 / 378.2 MB, free: 56 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1757/0.3093, allocations: 17.47 MB / 395.7 MB, free: 46.69 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001253/0.3095, allocations: 240.9 kB / 395.9 MB, free: 46.42 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.061/2.371, allocations: 0 / 395.9 MB, free: 46.42 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches