Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.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.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001341/0.001341, allocations: 101 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001471/0.001471, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 227.4 MB / 246.3 MB, free: 9.047 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 61.08 kB / 306.4 MB, free: 0.7227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1131, allocations: 50.54 MB / 356.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004732/0.1179, allocations: 3.54 MB / 360.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00149/0.1194, allocations: 0.857 MB / 361.3 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002959/0.1197, allocations: 4 kB / 361.3 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002243/0.12, allocations: 51.61 kB / 361.3 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000313/0.1203, allocations: 115 kB / 361.5 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003382/0.1207, allocations: 119.8 kB / 361.6 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005073/0.1212, allocations: 493.7 kB / 362.1 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002103/0.1214, allocations: 111.9 kB / 362.2 MB, free: 8.871 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003027/0.1217, allocations: 183.2 kB / 362.3 MB, free: 8.691 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002378/0.122, allocations: 191.1 kB / 362.5 MB, free: 8.504 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.373e-05/0.122, allocations: 24 kB / 362.5 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001042/0.1221, allocations: 35.98 kB / 362.6 MB, free: 8.445 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.189e-05/0.1222, allocations: 83.61 kB / 362.7 MB, free: 8.363 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001946/0.1224, allocations: 202.9 kB / 362.9 MB, free: 8.164 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004029/0.1228, allocations: 478.2 kB / 363.3 MB, free: 7.695 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1228, allocations: 3.938 kB / 363.3 MB, free: 7.691 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1228, allocations: 0 / 363.3 MB, free: 7.691 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.463e-05/0.1229, allocations: 0 / 363.3 MB, free: 7.691 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001322/0.1242, allocations: 0.7307 MB / 364.1 MB, free: 6.914 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/0.1243, allocations: 12.02 kB / 364.1 MB, free: 6.902 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.802e-05/0.1244, allocations: 66.73 kB / 364.1 MB, free: 6.828 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000376/0.1247, allocations: 76.33 kB / 364.2 MB, free: 6.754 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004166/0.1252, allocations: 315.3 kB / 364.5 MB, free: 6.406 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.332e-05/0.1253, allocations: 29.03 kB / 364.6 MB, free: 6.379 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.548e-05/0.1253, allocations: 28.38 kB / 364.6 MB, free: 6.352 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006473/0.126, allocations: 362.8 kB / 364.9 MB, free: 5.984 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.126, allocations: 0 / 364.9 MB, free: 5.984 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.458e-05/0.126, allocations: 19.98 kB / 365 MB, free: 5.965 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/0.126, allocations: 8 kB / 365 MB, free: 5.957 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005713/0.1266, allocations: 274.4 kB / 365.2 MB, free: 5.688 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001973/0.1286, allocations: 1.418 MB / 366.6 MB, free: 4.168 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004079/0.129, allocations: 218.3 kB / 366.9 MB, free: 3.945 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002151/0.1292, allocations: 108.8 kB / 367 MB, free: 3.836 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.866e-05/0.1293, allocations: 11.94 kB / 367 MB, free: 3.824 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.409e-05/0.1293, allocations: 34.56 kB / 367 MB, free: 3.781 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.353e-06/0.1293, allocations: 0 / 367 MB, free: 3.781 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001537/0.1309, allocations: 0.6984 MB / 367.7 MB, free: 3.012 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.837e-05/0.1309, allocations: 55.41 kB / 367.8 MB, free: 2.945 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003306/0.1313, allocations: 320.4 kB / 368.1 MB, free: 2.629 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.642e-05/0.1313, allocations: 33.64 kB / 368.1 MB, free: 2.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001437/0.1315, allocations: 204.2 kB / 368.3 MB, free: 2.383 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.31e-05/0.1315, allocations: 78.84 kB / 368.4 MB, free: 2.305 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.858e-05/0.1316, allocations: 53.61 kB / 368.4 MB, free: 2.246 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.1317, allocations: 342.8 kB / 368.8 MB, free: 1.902 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002001/0.1319, allocations: 83.89 kB / 368.9 MB, free: 1.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001948/0.1321, allocations: 120.2 kB / 369 MB, free: 1.688 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003489/0.1325, allocations: 196.2 kB / 369.2 MB, free: 1.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.1325, allocations: 3.938 kB / 369.2 MB, free: 1.477 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006698/0.1332, allocations: 359.6 kB / 369.5 MB, free: 1.109 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.1332, allocations: 11.98 kB / 369.5 MB, free: 1.098 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.1332, allocations: 4 kB / 369.5 MB, free: 1.094 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004129/0.1336, allocations: 118.4 kB / 369.7 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000175/0.1338, allocations: 31.92 kB / 369.7 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2239/0.3578, allocations: 4.437 MB / 374.1 MB, free: 16.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002409/0.3581, allocations: 28.22 kB / 374.1 MB, free: 16.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.616e-05/0.3581, allocations: 7.141 kB / 374.2 MB, free: 16.78 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001671/0.3583, allocations: 154.1 kB / 374.3 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.252e-05/0.3583, allocations: 33.58 kB / 374.3 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.837e-05/0.3584, allocations: 38.44 kB / 374.4 MB, free: 16.63 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.3584, allocations: 5.719 kB / 374.4 MB, free: 16.63 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.798e-06/0.3584, allocations: 1.297 kB / 374.4 MB, free: 16.63 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.309e-06/0.3584, allocations: 1.453 kB / 374.4 MB, free: 16.63 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004028/0.3588, allocations: 386.2 kB / 374.8 MB, free: 16.37 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.3589, allocations: 0 / 374.8 MB, free: 16.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001156/0.359, allocations: 24.64 kB / 374.8 MB, free: 16.37 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000341/0.3593, allocations: 112.8 kB / 374.9 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.698e-05/0.3593, allocations: 6.422 kB / 374.9 MB, free: 16.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002517/0.3619, allocations: 4.449 MB / 379.4 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.3619, allocations: 4.812 kB / 379.4 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005615/0.3625, allocations: 401.6 kB / 379.7 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001016/0.3626, allocations: 128.7 kB / 379.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.698e-05/0.3626, allocations: 3.25 kB / 379.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002197/0.3628, allocations: 26.39 kB / 379.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.793e-05/0.3629, allocations: 23.59 kB / 379.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.758e-05/0.363, allocations: 9.328 kB / 379.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002118/0.3632, allocations: 226.1 kB / 380.2 MB, free: 11.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3632, allocations: 0 / 380.2 MB, free: 11.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006974/0.3639, allocations: 115.5 kB / 380.3 MB, free: 11.49 MB / 302.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: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 3 systems {(1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007546/0.3647, allocations: 0.945 MB / 381.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007571/0.3654, allocations: 0.5699 MB / 381.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.3654, allocations: 1.375 kB / 381.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004259/0.3659, allocations: 475.6 kB / 382.2 MB, free: 9.898 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004992/0.3664, allocations: 66.97 kB / 382.3 MB, free: 9.883 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004003/0.3704, allocations: 3.313 MB / 385.6 MB, free: 7.656 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002366/0.3706, allocations: 0.8 MB / 386.4 MB, free: 6.953 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001331/0.3708, allocations: 27.95 kB / 386.5 MB, free: 6.945 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001204/0.3709, allocations: 110.7 kB / 386.6 MB, free: 6.863 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3709, allocations: 0 / 386.6 MB, free: 6.863 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02239/0.3933, allocations: 7.95 MB / 394.5 MB, free: 4.773 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001424/0.3935, allocations: 252.4 kB / 394.8 MB, free: 4.516 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.867/2.26, allocations: 0 / 394.8 MB, free: 4.516 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicIdealDiodes/CharacteristicIdealDiodes.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches