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.001066/0.001066, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.001066/0.001066, allocations: 192 kB / 18.51 MB, free: 4.508 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.287/1.287, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001303/0.001304, allocations: 47.94 kB / 280.7 MB, free: 3.082 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08085/0.08217, allocations: 46.64 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005739/0.08795, allocations: 5.141 MB / 332.5 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009519/0.09749, allocations: 8.665 MB / 341.2 MB, free: 6.5 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005812/0.0981, allocations: 19.88 kB / 341.2 MB, free: 6.48 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001061/0.0992, allocations: 377.4 kB / 341.6 MB, free: 6.109 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00227/0.1015, allocations: 0.8183 MB / 342.4 MB, free: 5.285 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001464/0.103, allocations: 0.5791 MB / 343 MB, free: 4.703 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002321/0.1053, allocations: 1.642 MB / 344.6 MB, free: 3.055 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002814/0.1056, allocations: 179 kB / 344.8 MB, free: 2.867 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003058/0.1059, allocations: 278.6 kB / 345.1 MB, free: 2.594 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003081/0.1062, allocations: 314 kB / 345.4 MB, free: 2.285 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.696e-05/0.1063, allocations: 32 kB / 345.4 MB, free: 2.254 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001225/0.1075, allocations: 0.5582 MB / 346 MB, free: 1.695 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.228e-05/0.1076, allocations: 99.33 kB / 346.1 MB, free: 1.598 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003509/0.108, allocations: 409.5 kB / 346.5 MB, free: 1.195 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001241/0.1092, allocations: 1.187 MB / 347.6 MB, free: 4 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1093, allocations: 4 kB / 347.6 MB, free: 0 / 286.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1093, allocations: 0 / 347.6 MB, free: 0 / 286.1 MB Notification: Performance of Transformations before backend: time 9.919e-06/0.1093, allocations: 0 / 347.6 MB, free: 0 / 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.001569/0.1109, allocations: 1.275 MB / 348.9 MB, free: 14.67 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.1109, allocations: 12.02 kB / 348.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.511e-05/0.111, allocations: 58.73 kB / 349 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001167/0.1111, allocations: 115.6 kB / 349.1 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009955/0.1121, allocations: 0.8474 MB / 350 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.142e-05/0.1121, allocations: 20.56 kB / 350 MB, free: 13.56 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.385e-05/0.1122, allocations: 24 kB / 350 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004428/0.1126, allocations: 315.7 kB / 350.3 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.1127, allocations: 0 / 350.3 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.914e-05/0.1127, allocations: 12 kB / 350.3 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.218e-05/0.1127, allocations: 11.94 kB / 350.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003746/0.1131, allocations: 230.1 kB / 350.6 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00151/0.1146, allocations: 1.183 MB / 351.7 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003215/0.1149, allocations: 198.5 kB / 351.9 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002897/0.1152, allocations: 225.4 kB / 352.1 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007522/0.1228, allocations: 8.561 MB / 360.7 MB, free: 1.332 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.955e-05/0.1228, allocations: 42.5 kB / 360.8 MB, free: 1.281 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 2.314e-06/0.1229, allocations: 0 / 360.8 MB, free: 1.281 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001555/0.1244, allocations: 0.6582 MB / 361.4 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.295e-05/0.1245, allocations: 77.11 kB / 361.5 MB, free: 0.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008487/0.1253, allocations: 0.7988 MB / 362.3 MB, free: 15.68 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.185e-05/0.1254, allocations: 25.7 kB / 362.3 MB, free: 15.65 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003163/0.1257, allocations: 448.5 kB / 362.7 MB, free: 15.21 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.138e-05/0.1257, allocations: 74.86 kB / 362.8 MB, free: 15.14 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.836e-05/0.1258, allocations: 61.92 kB / 362.9 MB, free: 15.07 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.577e-05/0.1259, allocations: 317.9 kB / 363.2 MB, free: 14.75 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000133/0.1261, allocations: 68.14 kB / 363.3 MB, free: 14.69 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001785/0.1263, allocations: 150.4 kB / 363.4 MB, free: 14.51 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003187/0.1266, allocations: 236.9 kB / 363.6 MB, free: 14.25 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.92e-06/0.1266, allocations: 0 / 363.6 MB, free: 14.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005517/0.1272, allocations: 408.9 kB / 364 MB, free: 13.84 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.1272, allocations: 12.22 kB / 364 MB, free: 13.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.886e-05/0.1272, allocations: 19.94 kB / 364.1 MB, free: 13.8 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003278/0.1276, allocations: 136.8 kB / 364.2 MB, free: 13.67 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001652/0.1277, allocations: 31.97 kB / 364.2 MB, free: 13.64 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006044/0.1284, allocations: 0.7192 MB / 364.9 MB, free: 12.89 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002533/0.1286, allocations: 27.69 kB / 365 MB, free: 12.87 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.396e-05/0.1287, allocations: 16 kB / 365 MB, free: 12.85 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.0002384/0.1289, allocations: 193.8 kB / 365.2 MB, free: 12.65 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.129, allocations: 106.7 kB / 365.3 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007718/0.1298, allocations: 403.5 kB / 365.7 MB, free: 12.13 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.87e-06/0.1298, allocations: 0 / 365.7 MB, free: 12.13 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.1298, allocations: 0 / 365.7 MB, free: 12.13 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.1298, allocations: 4 kB / 365.7 MB, free: 12.13 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005352/0.1304, allocations: 0.5073 MB / 366.2 MB, free: 11.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.59e-05/0.1304, allocations: 19.94 kB / 366.2 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001245/0.1305, allocations: 27.92 kB / 366.2 MB, free: 11.53 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002562/0.1308, allocations: 132.8 kB / 366.4 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.95e-05/0.1308, allocations: 8 kB / 366.4 MB, free: 11.39 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005329/0.1314, allocations: 0.6967 MB / 367.1 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.1314, allocations: 4.031 kB / 367.1 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005143/0.1319, allocations: 451.7 kB / 367.5 MB, free: 10.2 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001694/0.1321, allocations: 175.8 kB / 367.7 MB, free: 10.01 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.17e-05/0.1322, allocations: 4.062 kB / 367.7 MB, free: 10 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002019/0.1324, allocations: 11.94 kB / 367.7 MB, free: 9.992 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.206e-05/0.1325, allocations: 19.92 kB / 367.7 MB, free: 9.973 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.814e-05/0.1325, allocations: 8 kB / 367.7 MB, free: 9.965 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005592/0.1331, allocations: 0.5461 MB / 368.3 MB, free: 9.41 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1331, allocations: 0 / 368.3 MB, free: 9.41 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005557/0.1336, allocations: 191.8 kB / 368.5 MB, free: 9.223 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.001198/0.1348, allocations: 1.184 MB / 369.6 MB, free: 8.008 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005418/0.1354, allocations: 276 kB / 369.9 MB, free: 7.727 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1354, allocations: 0.5625 kB / 369.9 MB, free: 7.727 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002686/0.1357, allocations: 187.5 kB / 370.1 MB, free: 7.531 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005574/0.1362, allocations: 136.6 kB / 370.2 MB, free: 7.398 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006078/0.1423, allocations: 5.655 MB / 375.9 MB, free: 1.445 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004004/0.1428, allocations: 0.9371 MB / 376.8 MB, free: 492 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003453/0.1431, allocations: 118.6 kB / 376.9 MB, free: 368 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002768/0.1434, allocations: 315.3 kB / 377.3 MB, free: 52 kB / 318.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1434, allocations: 0 / 377.3 MB, free: 52 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1605/0.3039, allocations: 18.09 MB / 395.3 MB, free: 47.5 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.41, allocations: 4 kB / 395.3 MB, free: 47.49 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches