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.001161/0.001161, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001338/0.001339, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.413/1.413, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001776/0.001776, allocations: 59.94 kB / 307 MB, free: 0.5586 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1148, allocations: 50.53 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006184/0.121, allocations: 5.294 MB / 362.9 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1953/0.3163, allocations: 9.099 MB / 372 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009349/0.3173, allocations: 19.78 kB / 372 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001372/0.3187, allocations: 393.5 kB / 372.4 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003839/0.3226, allocations: 0.8347 MB / 373.2 MB, free: 8.691 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002048/0.3246, allocations: 0.5993 MB / 373.8 MB, free: 8.668 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00318/0.3278, allocations: 1.706 MB / 375.5 MB, free: 8.418 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003025/0.3282, allocations: 166.3 kB / 375.7 MB, free: 8.367 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005102/0.3287, allocations: 306.3 kB / 376 MB, free: 8.332 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003852/0.3291, allocations: 319.2 kB / 376.3 MB, free: 8.215 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.327e-05/0.3292, allocations: 29.91 kB / 376.3 MB, free: 8.215 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002092/0.3313, allocations: 0.6649 MB / 377 MB, free: 8.191 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.911e-05/0.3314, allocations: 101 kB / 377.1 MB, free: 8.152 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004122/0.3318, allocations: 408.8 kB / 377.5 MB, free: 8 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001757/0.3336, allocations: 1.197 MB / 378.7 MB, free: 7.781 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.3336, allocations: 0.6562 kB / 378.7 MB, free: 7.781 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3336, allocations: 1.438 kB / 378.7 MB, free: 7.781 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.131e-05/0.3336, allocations: 0 / 378.7 MB, free: 7.781 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.001737/0.3353, allocations: 1.278 MB / 380 MB, free: 6.953 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.3354, allocations: 9.594 kB / 380 MB, free: 6.953 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.486e-05/0.3355, allocations: 66.41 kB / 380 MB, free: 6.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002873/0.3358, allocations: 127.7 kB / 380.2 MB, free: 6.852 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001104/0.3369, allocations: 0.8494 MB / 381 MB, free: 6.488 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.739e-05/0.3369, allocations: 19.94 kB / 381 MB, free: 6.484 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.687e-05/0.337, allocations: 33.45 kB / 381.1 MB, free: 6.477 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004694/0.3374, allocations: 301.9 kB / 381.4 MB, free: 6.422 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.12e-05/0.3374, allocations: 1.594 kB / 381.4 MB, free: 6.422 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.845e-05/0.3375, allocations: 11.78 kB / 381.4 MB, free: 6.422 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.358e-05/0.3375, allocations: 7.844 kB / 381.4 MB, free: 6.422 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003821/0.3379, allocations: 236.3 kB / 381.6 MB, free: 6.414 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001612/0.3395, allocations: 1.187 MB / 382.8 MB, free: 5.734 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003513/0.3399, allocations: 206.7 kB / 383 MB, free: 5.633 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003339/0.3402, allocations: 223.3 kB / 383.2 MB, free: 5.531 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007474/0.3477, allocations: 8.878 MB / 392.1 MB, free: 13.37 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.026e-05/0.3478, allocations: 36 kB / 392.1 MB, free: 13.33 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.404e-06/0.3478, allocations: 3.938 kB / 392.1 MB, free: 13.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.001647/0.3494, allocations: 0.6562 MB / 392.8 MB, free: 13.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.921e-05/0.3495, allocations: 83.34 kB / 392.9 MB, free: 12.92 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009906/0.3505, allocations: 0.798 MB / 393.7 MB, free: 12.59 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.862e-05/0.3505, allocations: 31.05 kB / 393.7 MB, free: 12.55 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003504/0.3509, allocations: 438 kB / 394.1 MB, free: 12.2 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.102e-05/0.351, allocations: 75.86 kB / 394.2 MB, free: 12.14 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.867e-05/0.3511, allocations: 64.25 kB / 394.3 MB, free: 12.11 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.3512, allocations: 316 kB / 394.6 MB, free: 11.8 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000164/0.3513, allocations: 70.59 kB / 394.6 MB, free: 11.77 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001995/0.3516, allocations: 154 kB / 394.8 MB, free: 11.64 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003534/0.3519, allocations: 234.2 kB / 395 MB, free: 11.48 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.287e-06/0.3519, allocations: 1 kB / 395 MB, free: 11.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006556/0.3526, allocations: 404.8 kB / 395.4 MB, free: 11.3 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.3526, allocations: 8.797 kB / 395.4 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.207e-05/0.3527, allocations: 15.5 kB / 395.4 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003474/0.353, allocations: 141.2 kB / 395.6 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001661/0.3532, allocations: 32.72 kB / 395.6 MB, free: 11.26 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006029/0.3538, allocations: 0.7134 MB / 396.3 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003179/0.3541, allocations: 23.7 kB / 396.3 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.88e-05/0.3542, allocations: 16.06 kB / 396.4 MB, free: 10.64 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.0002509/0.3544, allocations: 203.5 kB / 396.6 MB, free: 10.47 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001312/0.3546, allocations: 109.7 kB / 396.7 MB, free: 10.41 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008669/0.3554, allocations: 407.5 kB / 397.1 MB, free: 10.22 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.388e-06/0.3555, allocations: 6.344 kB / 397.1 MB, free: 10.22 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.3555, allocations: 0 / 397.1 MB, free: 10.22 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.3555, allocations: 5.125 kB / 397.1 MB, free: 10.21 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000729/0.3562, allocations: 0.5039 MB / 397.6 MB, free: 9.816 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.263e-05/0.3563, allocations: 16.38 kB / 397.6 MB, free: 9.812 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000125/0.3564, allocations: 20.34 kB / 397.6 MB, free: 9.805 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002647/0.3567, allocations: 136.5 kB / 397.7 MB, free: 9.75 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.907e-05/0.3567, allocations: 5.5 kB / 397.7 MB, free: 9.75 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005632/0.3573, allocations: 0.711 MB / 398.5 MB, free: 9.133 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.3573, allocations: 3.938 kB / 398.5 MB, free: 9.129 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000593/0.3579, allocations: 470.9 kB / 398.9 MB, free: 8.824 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002264/0.3581, allocations: 167.5 kB / 399.1 MB, free: 8.668 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.659e-05/0.3582, allocations: 9.047 kB / 399.1 MB, free: 8.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002088/0.3584, allocations: 6.344 kB / 399.1 MB, free: 8.656 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.868e-05/0.3585, allocations: 12.48 kB / 399.1 MB, free: 8.652 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.33e-05/0.3585, allocations: 8.906 kB / 399.1 MB, free: 8.652 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007397/0.3593, allocations: 0.5416 MB / 399.7 MB, free: 8.332 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3593, allocations: 0 / 399.7 MB, free: 8.332 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007323/0.36, allocations: 194 kB / 399.9 MB, free: 8.301 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.001438/0.3615, allocations: 1.185 MB / 401 MB, free: 7.422 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006552/0.3621, allocations: 290.3 kB / 401.3 MB, free: 7.258 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.3621, allocations: 0 / 401.3 MB, free: 7.258 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003015/0.3624, allocations: 181.7 kB / 401.5 MB, free: 7.145 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008174/0.3633, allocations: 164.1 kB / 401.7 MB, free: 7.055 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00688/0.3702, allocations: 5.653 MB / 407.3 MB, free: 3.098 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004333/0.3706, allocations: 0.9412 MB / 408.3 MB, free: 2.129 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004089/0.371, allocations: 106.7 kB / 408.4 MB, free: 2.02 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003637/0.3714, allocations: 315.3 kB / 408.7 MB, free: 1.711 MB / 318.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3714, allocations: 0 / 408.7 MB, free: 1.711 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.966/2.337, allocations: 18.15 MB / 426.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.54/15.88, allocations: 3.984 kB / 426.8 MB, free: 15.7 MB / 350.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