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.0006976/0.0006977, allocations: 94 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007854/0.0007854, allocations: 200.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.228/1.228, allocations: 227.7 MB / 246.8 MB, free: 9.699 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001996/0.0001996, allocations: 8 kB / 307.8 MB, free: 0.5078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08498/0.08519, allocations: 51.51 MB / 359.4 MB, free: 12.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.003256/0.08848, allocations: 3.158 MB / 362.5 MB, free: 9.812 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001401/0.0899, allocations: 0.8416 MB / 363.4 MB, free: 8.965 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002445/0.09017, allocations: 8 kB / 363.4 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001686/0.09035, allocations: 47.61 kB / 363.4 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002881/0.09065, allocations: 119 kB / 363.5 MB, free: 8.793 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003224/0.09098, allocations: 123.8 kB / 363.6 MB, free: 8.672 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004944/0.09148, allocations: 485.7 kB / 364.1 MB, free: 8.195 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002124/0.0917, allocations: 119.9 kB / 364.2 MB, free: 8.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002822/0.09199, allocations: 171.2 kB / 364.4 MB, free: 7.902 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002295/0.09223, allocations: 187.1 kB / 364.6 MB, free: 7.719 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.111e-05/0.0923, allocations: 20 kB / 364.6 MB, free: 7.699 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.288e-05/0.0924, allocations: 28 kB / 364.6 MB, free: 7.672 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.822e-05/0.09246, allocations: 67.62 kB / 364.7 MB, free: 7.605 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000186/0.09266, allocations: 224.6 kB / 364.9 MB, free: 7.379 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003775/0.09304, allocations: 470.1 kB / 365.4 MB, free: 6.918 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.09305, allocations: 3.938 kB / 365.4 MB, free: 6.914 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.09306, allocations: 0 / 365.4 MB, free: 6.914 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.09307, allocations: 0 / 365.4 MB, free: 6.914 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.0009516/0.09403, allocations: 0.6663 MB / 366.1 MB, free: 6.199 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.09408, allocations: 8.031 kB / 366.1 MB, free: 6.191 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.661e-05/0.09416, allocations: 70.72 kB / 366.1 MB, free: 6.113 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003195/0.09448, allocations: 80.34 kB / 366.2 MB, free: 6.035 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003509/0.09484, allocations: 327.2 kB / 366.5 MB, free: 5.676 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.012e-05/0.09487, allocations: 21.03 kB / 366.5 MB, free: 5.656 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.205e-05/0.09492, allocations: 36.38 kB / 366.6 MB, free: 5.621 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005954/0.09552, allocations: 362.8 kB / 366.9 MB, free: 5.254 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.09554, allocations: 0 / 366.9 MB, free: 5.254 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.128e-05/0.09558, allocations: 19.98 kB / 367 MB, free: 5.234 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/0.0956, allocations: 12 kB / 367 MB, free: 5.223 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005223/0.09612, allocations: 282.4 kB / 367.2 MB, free: 4.945 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001802/0.09793, allocations: 1.43 MB / 368.7 MB, free: 3.414 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004067/0.09835, allocations: 230.3 kB / 368.9 MB, free: 3.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002075/0.09857, allocations: 116.8 kB / 369 MB, free: 3.062 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.924e-05/0.0986, allocations: 7.938 kB / 369 MB, free: 3.055 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.448e-05/0.09863, allocations: 38.56 kB / 369.1 MB, free: 3.008 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.302e-06/0.09864, allocations: 0 / 369.1 MB, free: 3.008 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001451/0.1001, allocations: 0.7289 MB / 369.8 MB, free: 2.211 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.59e-05/0.1001, allocations: 51.41 kB / 369.8 MB, free: 2.148 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002652/0.1004, allocations: 320.4 kB / 370.1 MB, free: 1.832 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.428e-05/0.1004, allocations: 33.7 kB / 370.2 MB, free: 1.793 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001063/0.1005, allocations: 204.2 kB / 370.4 MB, free: 1.586 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.783e-05/0.1006, allocations: 78.84 kB / 370.5 MB, free: 1.508 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.957e-05/0.1006, allocations: 29.7 kB / 370.5 MB, free: 1.473 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.18e-05/0.1007, allocations: 342.8 kB / 370.8 MB, free: 1.129 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001791/0.1009, allocations: 87.91 kB / 370.9 MB, free: 1.043 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001924/0.1011, allocations: 132.2 kB / 371 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003643/0.1015, allocations: 216.1 kB / 371.2 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.1015, allocations: 3.938 kB / 371.3 MB, free: 0.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006528/0.1022, allocations: 367.5 kB / 371.6 MB, free: 300 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.1022, allocations: 8 kB / 371.6 MB, free: 292 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.1022, allocations: 0 / 371.6 MB, free: 292 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000351/0.1026, allocations: 118.4 kB / 371.7 MB, free: 164 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000158/0.1027, allocations: 35.91 kB / 371.8 MB, free: 128 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1331/0.2358, allocations: 4.443 MB / 376.2 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002256/0.2361, allocations: 31.08 kB / 376.2 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.141e-05/0.2361, allocations: 7.594 kB / 376.3 MB, free: 14.51 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.0001412/0.2362, allocations: 152.4 kB / 376.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.437e-05/0.2363, allocations: 36.12 kB / 376.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.85e-05/0.2364, allocations: 40.47 kB / 376.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.2364, allocations: 2.406 kB / 376.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.2364, allocations: 5.062 kB / 376.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.2364, allocations: 1.406 kB / 376.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003594/0.2368, allocations: 379.6 kB / 376.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.2368, allocations: 0 / 376.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001124/0.2369, allocations: 30.58 kB / 376.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003046/0.2372, allocations: 111.3 kB / 377 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.441e-05/0.2372, allocations: 5.312 kB / 377 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002351/0.2396, allocations: 4.456 MB / 381.5 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2396, allocations: 0 / 381.5 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005937/0.2402, allocations: 421.2 kB / 381.9 MB, free: 9.969 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.604e-05/0.2403, allocations: 126.4 kB / 382 MB, free: 9.859 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.467e-05/0.2403, allocations: 5.812 kB / 382 MB, free: 9.859 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002215/0.2406, allocations: 26.09 kB / 382 MB, free: 9.859 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.131e-05/0.2407, allocations: 27.02 kB / 382 MB, free: 9.859 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.554e-05/0.2407, allocations: 6.219 kB / 382.1 MB, free: 9.859 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002337/0.2409, allocations: 222.2 kB / 382.3 MB, free: 9.785 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2409, allocations: 1.5 kB / 382.3 MB, free: 9.785 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006434/0.2416, allocations: 114.5 kB / 382.4 MB, free: 9.777 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.0007693/0.2423, allocations: 0.9547 MB / 383.3 MB, free: 9.078 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007177/0.2431, allocations: 0.5867 MB / 383.9 MB, free: 8.727 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.2431, allocations: 0 / 383.9 MB, free: 8.727 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004014/0.2435, allocations: 490.1 kB / 384.4 MB, free: 8.383 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004169/0.2439, allocations: 62 kB / 384.5 MB, free: 8.379 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003647/0.2476, allocations: 3.367 MB / 387.8 MB, free: 6.215 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002156/0.2478, allocations: 0.7978 MB / 388.6 MB, free: 5.512 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001199/0.2479, allocations: 24.47 kB / 388.7 MB, free: 5.504 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001143/0.2481, allocations: 113.5 kB / 388.8 MB, free: 5.418 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2481, allocations: 0 / 388.8 MB, free: 5.418 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01872/0.2668, allocations: 7.826 MB / 396.6 MB, free: 3.422 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001472/0.267, allocations: 245.8 kB / 396.8 MB, free: 3.168 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.807/2.074, allocations: 3.234 kB / 396.8 MB, free: 3.168 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