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.001178/0.001178, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001727/0.001727, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.52/1.52, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 64.42 kB / 307 MB, free: 0.5273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.108, allocations: 50.52 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004913/0.113, allocations: 3.525 MB / 361.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001814/0.1148, allocations: 0.8454 MB / 361.9 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000425/0.1153, allocations: 11.94 kB / 362 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003131/0.1156, allocations: 67.3 kB / 362 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005169/0.1162, allocations: 138.8 kB / 362.2 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004967/0.1167, allocations: 123.8 kB / 362.3 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008097/0.1175, allocations: 0.5094 MB / 362.8 MB, free: 8.758 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003361/0.1178, allocations: 131.2 kB / 362.9 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005104/0.1184, allocations: 195.3 kB / 363.1 MB, free: 8.434 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004635/0.1188, allocations: 211 kB / 363.3 MB, free: 8.227 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001323/0.119, allocations: 40 kB / 363.3 MB, free: 8.188 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002009/0.1192, allocations: 44 kB / 363.4 MB, free: 8.145 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001442/0.1193, allocations: 95.66 kB / 363.5 MB, free: 8.051 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003915/0.1197, allocations: 222.9 kB / 363.7 MB, free: 7.832 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006872/0.1204, allocations: 490.2 kB / 364.2 MB, free: 7.352 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.1205, allocations: 3.938 kB / 364.2 MB, free: 7.348 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1205, allocations: 0 / 364.2 MB, free: 7.348 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.587e-05/0.1205, allocations: 0 / 364.2 MB, free: 7.348 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.001515/0.122, allocations: 0.7245 MB / 364.9 MB, free: 6.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.1221, allocations: 12.03 kB / 364.9 MB, free: 6.559 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.955e-05/0.1222, allocations: 66.72 kB / 365 MB, free: 6.484 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003789/0.1226, allocations: 80.34 kB / 365.1 MB, free: 6.406 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004222/0.123, allocations: 319.3 kB / 365.4 MB, free: 6.055 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.392e-05/0.123, allocations: 25.03 kB / 365.4 MB, free: 6.031 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.376e-05/0.1231, allocations: 32.31 kB / 365.4 MB, free: 6 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006075/0.1237, allocations: 358.9 kB / 365.8 MB, free: 5.637 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.4e-05/0.1237, allocations: 7.938 kB / 365.8 MB, free: 5.629 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.12e-05/0.1238, allocations: 12 kB / 365.8 MB, free: 5.617 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.1238, allocations: 11.98 kB / 365.8 MB, free: 5.605 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005445/0.1243, allocations: 262.5 kB / 366.1 MB, free: 5.348 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002151/0.1265, allocations: 1.426 MB / 367.5 MB, free: 3.82 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004391/0.1269, allocations: 233.5 kB / 367.7 MB, free: 3.586 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002079/0.1272, allocations: 112.8 kB / 367.8 MB, free: 3.473 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.714e-05/0.1272, allocations: 0 / 367.8 MB, free: 3.473 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.672e-05/0.1272, allocations: 34.56 kB / 367.9 MB, free: 3.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.715e-06/0.1272, allocations: 0 / 367.9 MB, free: 3.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001496/0.1287, allocations: 0.71 MB / 368.6 MB, free: 2.648 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.364e-05/0.1288, allocations: 51.41 kB / 368.6 MB, free: 2.586 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003176/0.1291, allocations: 316.4 kB / 368.9 MB, free: 2.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.651e-05/0.1292, allocations: 33.7 kB / 369 MB, free: 2.23 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001386/0.1293, allocations: 212.2 kB / 369.2 MB, free: 2.016 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.596e-05/0.1294, allocations: 74.86 kB / 369.3 MB, free: 1.941 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.433e-05/0.1295, allocations: 49.61 kB / 369.3 MB, free: 1.887 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.1296, allocations: 342.8 kB / 369.6 MB, free: 1.543 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001798/0.1298, allocations: 79.97 kB / 369.7 MB, free: 1.465 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002445/0.13, allocations: 124.2 kB / 369.8 MB, free: 1.328 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003808/0.1304, allocations: 208 kB / 370 MB, free: 1.109 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1304, allocations: 4 kB / 370 MB, free: 1.105 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007827/0.1312, allocations: 351.6 kB / 370.4 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.1313, allocations: 4 kB / 370.4 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.1313, allocations: 4 kB / 370.4 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004328/0.1317, allocations: 118.5 kB / 370.5 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000171/0.1319, allocations: 35.84 kB / 370.5 MB, free: 0.5781 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2036/0.3355, allocations: 4.959 MB / 375.5 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003251/0.3358, allocations: 26.03 kB / 375.5 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.971e-05/0.3359, allocations: 10.17 kB / 375.5 MB, free: 15.8 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.0002276/0.3361, allocations: 151.5 kB / 375.7 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.703e-05/0.3362, allocations: 39.98 kB / 375.7 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.131e-05/0.3362, allocations: 35.61 kB / 375.8 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.3363, allocations: 3.25 kB / 375.8 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.3363, allocations: 3.719 kB / 375.8 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.3363, allocations: 2.5 kB / 375.8 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004358/0.3367, allocations: 383.2 kB / 376.1 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.816e-06/0.3367, allocations: 0.5625 kB / 376.1 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001122/0.3369, allocations: 23.8 kB / 376.2 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003095/0.3372, allocations: 116.8 kB / 376.3 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.751e-05/0.3372, allocations: 6.141 kB / 376.3 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002757/0.34, allocations: 4.966 MB / 381.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.34, allocations: 4.656 kB / 381.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006257/0.3406, allocations: 408 kB / 381.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001168/0.3407, allocations: 127.5 kB / 381.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.893e-05/0.3408, allocations: 5.875 kB / 381.8 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002268/0.341, allocations: 24.73 kB / 381.8 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.3411, allocations: 23.66 kB / 381.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.852e-05/0.3412, allocations: 10.42 kB / 381.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002869/0.3415, allocations: 224.8 kB / 382.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3415, allocations: 0 / 382.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006923/0.3422, allocations: 116.1 kB / 382.2 MB, free: 10.21 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.0007551/0.3429, allocations: 0.9378 MB / 383.1 MB, free: 9.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008215/0.3438, allocations: 0.5757 MB / 383.7 MB, free: 9.004 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3438, allocations: 1.438 kB / 383.7 MB, free: 9.004 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004473/0.3442, allocations: 480.7 kB / 384.2 MB, free: 8.613 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004662/0.3447, allocations: 67.31 kB / 384.2 MB, free: 8.59 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003886/0.3486, allocations: 3.192 MB / 387.4 MB, free: 6.504 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00025/0.3489, allocations: 0.7981 MB / 388.2 MB, free: 5.801 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001312/0.349, allocations: 28.62 kB / 388.2 MB, free: 5.793 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000127/0.3491, allocations: 109.7 kB / 388.4 MB, free: 5.711 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3491, allocations: 0 / 388.4 MB, free: 5.711 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04422/0.3934, allocations: 8.529 MB / 396.9 MB, free: 3.227 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.36, allocations: 4.906 kB / 396.9 MB, free: 3.227 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