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.001596/0.001596, allocations: 113.2 kB / 17.33 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001556/0.001556, allocations: 205.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.591/1.591, allocations: 227.4 MB / 246.4 MB, free: 9.105 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 59.22 kB / 306.6 MB, free: 0.6445 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1435/0.145, allocations: 50.53 MB / 357.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005387/0.1504, allocations: 3.54 MB / 360.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002048/0.1525, allocations: 0.857 MB / 361.5 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006095/0.1531, allocations: 12 kB / 361.5 MB, free: 9.676 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004048/0.1536, allocations: 43.61 kB / 361.5 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006974/0.1543, allocations: 119 kB / 361.6 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006521/0.155, allocations: 119.8 kB / 361.8 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001004/0.156, allocations: 0.5017 MB / 362.3 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005308/0.1565, allocations: 139.2 kB / 362.4 MB, free: 8.754 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005239/0.1571, allocations: 195.2 kB / 362.6 MB, free: 8.562 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004722/0.1576, allocations: 203.1 kB / 362.8 MB, free: 8.363 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001507/0.1577, allocations: 40 kB / 362.8 MB, free: 8.324 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001857/0.1579, allocations: 44 kB / 362.9 MB, free: 8.281 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.449e-05/0.158, allocations: 99.61 kB / 363 MB, free: 8.184 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002675/0.1583, allocations: 226.9 kB / 363.2 MB, free: 7.961 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005603/0.1589, allocations: 494.2 kB / 363.7 MB, free: 7.477 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1589, allocations: 0 / 363.7 MB, free: 7.477 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1589, allocations: 0 / 363.7 MB, free: 7.477 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.136e-05/0.1589, allocations: 0 / 363.7 MB, free: 7.477 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.001181/0.1601, allocations: 0.7285 MB / 364.4 MB, free: 6.695 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.054e-05/0.1602, allocations: 8.031 kB / 364.4 MB, free: 6.688 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.906e-05/0.1603, allocations: 70.72 kB / 364.5 MB, free: 6.609 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003546/0.1606, allocations: 72.34 kB / 364.6 MB, free: 6.539 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007642/0.1614, allocations: 323.3 kB / 364.9 MB, free: 6.184 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.875e-05/0.1614, allocations: 25.03 kB / 364.9 MB, free: 6.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.803e-05/0.1615, allocations: 32.38 kB / 364.9 MB, free: 6.129 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007001/0.1622, allocations: 358.8 kB / 365.3 MB, free: 5.766 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.676e-05/0.1622, allocations: 0 / 365.3 MB, free: 5.766 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.811e-05/0.1623, allocations: 16 kB / 365.3 MB, free: 5.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.261e-05/0.1623, allocations: 8 kB / 365.3 MB, free: 5.742 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006918/0.163, allocations: 270.4 kB / 365.6 MB, free: 5.477 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002229/0.1653, allocations: 1.422 MB / 367 MB, free: 3.953 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004405/0.1657, allocations: 226.3 kB / 367.2 MB, free: 3.723 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002298/0.166, allocations: 108.8 kB / 367.3 MB, free: 3.613 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.428e-05/0.166, allocations: 4 kB / 367.3 MB, free: 3.609 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.211e-05/0.166, allocations: 46.44 kB / 367.4 MB, free: 3.555 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.613e-06/0.1661, allocations: 0 / 367.4 MB, free: 3.555 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001851/0.1679, allocations: 0.6975 MB / 368.1 MB, free: 2.789 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.599e-05/0.168, allocations: 55.41 kB / 368.1 MB, free: 2.723 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003363/0.1683, allocations: 316.4 kB / 368.4 MB, free: 2.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.065e-05/0.1684, allocations: 33.64 kB / 368.5 MB, free: 2.371 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001412/0.1685, allocations: 204.2 kB / 368.7 MB, free: 2.164 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.461e-05/0.1686, allocations: 82.84 kB / 368.7 MB, free: 2.082 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.245e-05/0.1687, allocations: 49.61 kB / 368.8 MB, free: 2.027 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.1689, allocations: 342.8 kB / 369.1 MB, free: 1.684 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002621/0.1691, allocations: 79.89 kB / 369.2 MB, free: 1.605 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000318/0.1695, allocations: 128.2 kB / 369.3 MB, free: 1.465 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004061/0.1699, allocations: 200.2 kB / 369.5 MB, free: 1.254 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.1699, allocations: 0 / 369.5 MB, free: 1.254 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007247/0.1706, allocations: 359.6 kB / 369.9 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.569e-05/0.1706, allocations: 6.812 kB / 369.9 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.1707, allocations: 4 kB / 369.9 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004711/0.1711, allocations: 118.4 kB / 370 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001893/0.1713, allocations: 35.91 kB / 370 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2287/0.4001, allocations: 4.96 MB / 375 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002952/0.4004, allocations: 22.81 kB / 375 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.964e-05/0.4005, allocations: 8.406 kB / 375 MB, free: 15.77 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.000228/0.4007, allocations: 156 kB / 375.2 MB, free: 15.65 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.27e-05/0.4008, allocations: 41.27 kB / 375.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.076e-05/0.4009, allocations: 36.92 kB / 375.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-06/0.4009, allocations: 3.062 kB / 375.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.4009, allocations: 0 / 375.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.4009, allocations: 2.547 kB / 375.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005023/0.4014, allocations: 372.4 kB / 375.6 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.379e-06/0.4014, allocations: 1.203 kB / 375.6 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001239/0.4016, allocations: 24 kB / 375.6 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003689/0.4019, allocations: 119.9 kB / 375.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.984e-05/0.402, allocations: 5.266 kB / 375.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002934/0.4049, allocations: 4.966 MB / 380.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.4049, allocations: 0.9688 kB / 380.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006468/0.4056, allocations: 410.8 kB / 381.1 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001123/0.4057, allocations: 133.1 kB / 381.3 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.931e-05/0.4057, allocations: 5.094 kB / 381.3 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002235/0.406, allocations: 20.92 kB / 381.3 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.56e-05/0.4061, allocations: 27.19 kB / 381.3 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.858e-05/0.4061, allocations: 10.25 kB / 381.3 MB, free: 10.39 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002424/0.4064, allocations: 223.9 kB / 381.5 MB, free: 10.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4064, allocations: 1.438 kB / 381.5 MB, free: 10.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007203/0.4071, allocations: 109.8 kB / 381.7 MB, free: 10.26 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.0008659/0.408, allocations: 0.9469 MB / 382.6 MB, free: 9.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008311/0.4088, allocations: 0.5828 MB / 383.2 MB, free: 9.051 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.4088, allocations: 1.375 kB / 383.2 MB, free: 9.051 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004524/0.4093, allocations: 484.4 kB / 383.7 MB, free: 8.668 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004786/0.4098, allocations: 56.16 kB / 383.7 MB, free: 8.648 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003946/0.4137, allocations: 3.316 MB / 387 MB, free: 6.426 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002456/0.414, allocations: 0.7983 MB / 387.8 MB, free: 5.723 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001304/0.4141, allocations: 27.64 kB / 387.9 MB, free: 5.715 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001233/0.4142, allocations: 111.2 kB / 388 MB, free: 5.633 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.4143, allocations: 0 / 388 MB, free: 5.633 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02866/0.4429, allocations: 8.321 MB / 396.3 MB, free: 3.375 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001637/0.4431, allocations: 256 kB / 396.5 MB, free: 3.113 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.228/2.671, allocations: 0 / 396.5 MB, free: 3.113 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