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.001153/0.001153, 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.001332/0.001333, 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.393/1.393, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 59.44 kB / 307 MB, free: 0.5664 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09821/0.09966, allocations: 50.54 MB / 357.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005323/0.105, allocations: 3.506 MB / 361.1 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001702/0.1068, allocations: 0.8492 MB / 361.9 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002948/0.1071, allocations: 8 kB / 361.9 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002476/0.1074, allocations: 71.28 kB / 362 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003365/0.1077, allocations: 134.8 kB / 362.1 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004097/0.1081, allocations: 135.7 kB / 362.3 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005927/0.1087, allocations: 0.5056 MB / 362.8 MB, free: 8.801 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002647/0.109, allocations: 139.2 kB / 362.9 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000335/0.1093, allocations: 195.2 kB / 363.1 MB, free: 8.469 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002841/0.1096, allocations: 207.1 kB / 363.3 MB, free: 8.266 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.943e-05/0.1097, allocations: 43.98 kB / 363.4 MB, free: 8.223 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00012/0.1099, allocations: 44 kB / 363.4 MB, free: 8.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.53e-05/0.1099, allocations: 91.69 kB / 363.5 MB, free: 8.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002133/0.1102, allocations: 222.8 kB / 363.7 MB, free: 7.871 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004687/0.1106, allocations: 498.2 kB / 364.2 MB, free: 7.383 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1107, allocations: 0 / 364.2 MB, free: 7.383 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.1107, allocations: 0 / 364.2 MB, free: 7.383 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.716e-05/0.1107, allocations: 4 kB / 364.2 MB, free: 7.379 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.001202/0.1119, allocations: 0.7206 MB / 364.9 MB, free: 6.605 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.1119, allocations: 12.03 kB / 364.9 MB, free: 6.594 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.667e-05/0.112, allocations: 70.72 kB / 365 MB, free: 6.516 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003755/0.1124, allocations: 72.34 kB / 365.1 MB, free: 6.445 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003925/0.1128, allocations: 323.3 kB / 365.4 MB, free: 6.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.505e-05/0.1128, allocations: 25.03 kB / 365.4 MB, free: 6.066 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.274e-05/0.1129, allocations: 28.38 kB / 365.4 MB, free: 6.039 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006177/0.1135, allocations: 362.8 kB / 365.8 MB, free: 5.672 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.1135, allocations: 4 kB / 365.8 MB, free: 5.668 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.217e-05/0.1136, allocations: 8 kB / 365.8 MB, free: 5.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.296e-06/0.1136, allocations: 8 kB / 365.8 MB, free: 5.652 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005481/0.1141, allocations: 270.4 kB / 366.1 MB, free: 5.387 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001982/0.1161, allocations: 1.43 MB / 367.5 MB, free: 3.855 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004596/0.1166, allocations: 218.4 kB / 367.7 MB, free: 3.633 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002213/0.1168, allocations: 108.8 kB / 367.8 MB, free: 3.523 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.636e-05/0.1169, allocations: 3.938 kB / 367.8 MB, free: 3.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.463e-05/0.1169, allocations: 50.47 kB / 367.9 MB, free: 3.461 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.913e-06/0.1169, allocations: 0 / 367.9 MB, free: 3.461 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001579/0.1185, allocations: 0.692 MB / 368.6 MB, free: 2.699 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.748e-05/0.1186, allocations: 59.39 kB / 368.6 MB, free: 2.629 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000336/0.1189, allocations: 320.4 kB / 368.9 MB, free: 2.309 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.518e-05/0.1189, allocations: 29.7 kB / 369 MB, free: 2.273 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001425/0.1191, allocations: 208.2 kB / 369.2 MB, free: 2.062 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.158e-05/0.1192, allocations: 82.83 kB / 369.3 MB, free: 1.98 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.567e-05/0.1193, allocations: 49.61 kB / 369.3 MB, free: 1.926 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.1194, allocations: 346.8 kB / 369.6 MB, free: 1.578 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002059/0.1196, allocations: 75.95 kB / 369.7 MB, free: 1.504 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002145/0.1198, allocations: 132.2 kB / 369.8 MB, free: 1.359 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004101/0.1203, allocations: 188.2 kB / 370 MB, free: 1.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1203, allocations: 0 / 370 MB, free: 1.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007423/0.121, allocations: 367.5 kB / 370.4 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.1211, allocations: 7.281 kB / 370.4 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.1211, allocations: 4 kB / 370.4 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004113/0.1215, allocations: 118.5 kB / 370.5 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001879/0.1217, allocations: 35.92 kB / 370.5 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1657/0.2874, allocations: 4.953 MB / 375.5 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003286/0.2877, allocations: 32.05 kB / 375.5 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.806e-05/0.2878, allocations: 10.56 kB / 375.5 MB, free: 15.89 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.0002675/0.2881, allocations: 155.7 kB / 375.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001562/0.2883, allocations: 37.72 kB / 375.7 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.608e-05/0.2884, allocations: 35.5 kB / 375.8 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.2884, allocations: 2.875 kB / 375.8 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.2884, allocations: 0.6562 kB / 375.8 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.744e-06/0.2884, allocations: 4.828 kB / 375.8 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007088/0.2891, allocations: 383.7 kB / 376.1 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.2891, allocations: 1.469 kB / 376.1 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001423/0.2893, allocations: 20.11 kB / 376.2 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004327/0.2897, allocations: 119.8 kB / 376.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.668e-05/0.2898, allocations: 4.812 kB / 376.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003355/0.2931, allocations: 4.969 MB / 381.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.2932, allocations: 0.5156 kB / 381.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007535/0.2939, allocations: 407.4 kB / 381.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001707/0.2941, allocations: 129.2 kB / 381.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.922e-05/0.2942, allocations: 5.969 kB / 381.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002695/0.2944, allocations: 20.16 kB / 381.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001301/0.2946, allocations: 30.11 kB / 381.8 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.556e-05/0.2946, allocations: 10.55 kB / 381.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004207/0.295, allocations: 223.8 kB / 382.1 MB, free: 10.35 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.2951, allocations: 0.5938 kB / 382.1 MB, free: 10.35 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008422/0.2959, allocations: 118.5 kB / 382.2 MB, free: 10.33 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.000915/0.2968, allocations: 0.9386 MB / 383.1 MB, free: 9.555 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001006/0.2978, allocations: 0.5661 MB / 383.7 MB, free: 9.137 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.2979, allocations: 0.5 kB / 383.7 MB, free: 9.137 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004978/0.2984, allocations: 488.1 kB / 384.2 MB, free: 8.742 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005344/0.2989, allocations: 66.92 kB / 384.2 MB, free: 8.715 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005031/0.304, allocations: 3.179 MB / 387.4 MB, free: 6.637 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003026/0.3043, allocations: 0.8012 MB / 388.2 MB, free: 5.934 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001607/0.3045, allocations: 22.69 kB / 388.2 MB, free: 5.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001509/0.3046, allocations: 114.3 kB / 388.3 MB, free: 5.844 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3046, allocations: 0 / 388.3 MB, free: 5.844 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0391/0.3437, allocations: 8.54 MB / 396.9 MB, free: 3.344 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.78, allocations: 3.156 kB / 396.9 MB, free: 3.344 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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